Can AI Coding Tools Build Software from Scratch on Bare Metal? A Feasibility Test
This article reports a hands-on feasibility test of AI coding tools in a bare-metal firmware shell environment, where the development machine has only a basic IDE, no script runtimes, package managers, or third-party libraries, and the goal is given as a single natural-language sentence. Using a brick-breaker game with Chinese UI as the test vehicle, it walks through the real difficulties of the target environment (display channel, fonts, input events, timing, collision, application packaging), the layered capabilities and typical shortcomings the model displayed, and four tool-agnostic engineering methods to compensate. It also compares agentic tools with in-editor completion, discusses cost, latency and model selection, and closes with a reusable checklist.
1. Why Extreme Constraints Make a Better Test
The easiest way to distort an evaluation of an AI coding tool is to hand it a fully provisioned project with every dependency installed, then watch it complete a few functions. That kind of test only measures code completion. It says nothing about the ability to build from zero. An informative experiment strips external support away entirely.
This experiment used four hard constraints:
- The development machine kept only a basic IDE, with no script runtime, package manager, compiler toolchain plugins, or third-party libraries installed.
- The local codebase was empty, and the tester wrote not a single line of implementation code.
- No domain-level guidance was given: no hints about data structures, no hints about call order.
- The goal was stated in one natural-language sentence, and the model had to derive everything else itself.
The point of this setup is that it converts “is the tool any good?” into “given severely insufficient information, can the model autonomously clarify requirements, make technology choices, scaffold the project, and repair its own errors?” That closely matches what happens when this technology is actually adopted inside a company: the business side gives one sentence, and the engineering side has to fill in everything else.
2. Task Choice: Why a Brick-Breaker Game
Picking a small graphical game as the test vehicle was not arbitrary. It has a clear structure and closed logic, while covering four core elements: graphics rendering, input sampling, collision detection, and time-based progression. It is a classic sample for testing program organization.
The difference in runtime environment matters even more. Similar tests had already been run in browser environments and on mobile systems, where the difficulty sits mainly in business logic. A bare-metal environment lacks the display driver, memory allocation, file access, font rendering, and time services that an operating system normally provides, so the complexity rises by an order of magnitude. A single missing piece of support turns “a simple little game” into systems engineering.
3. The Real Difficulties of the Target Environment
Running a graphical program under a firmware shell means writing code in a functionally limited, boot-stage environment and handling the following problems yourself.
- Display channel. With no window system, you can only rely on the graphics output protocol the firmware provides, and implement mode setting, framebuffer location, and pixel writes yourself.
- Fonts and Chinese text. Firmware environments typically ship only a limited character set, so displaying Chinese requires bundling your own font and implementing the mapping from encoding to glyph bitmaps, including layout and baseline alignment for non-monospaced glyphs.
- Input events. Converting keyboard scan codes to logical keys, debouncing press and release, and setting priority between direction control and the pause key all have to be implemented explicitly.
- Time base. Without a general sleep interface, a fixed-step loop must be driven by whatever timing protocol is available, so that speed does not depend on machine performance.
- Physics and collision. Ball-to-brick, ball-to-boundary, and the incidence angle of ball-to-paddle all need stable numerical handling to avoid tunneling at high speed.
- Project form. The final artifact has to be in an application format the boot environment recognizes, and you also have to account for size, relocation, and the debugging cost caused by the lack of tooling.
4. Process Observations: Layered Findings on Model Behavior
Given only an initialization instruction and the goal description, the model’s behavior showed roughly three layers of capability.
The first layer is requirement structuring. It proactively filled in implicit conditions: where the resolution comes from, no audio, a Chinese interface, how to exit, and how failure and victory are determined. This shows it was not passively waiting for instructions but could apply reasonable defaults.
The second layer is convergence on a technical path. It decided on its own that high-level frameworks were off the table and that it had to program against the firmware protocol, and chose the build approach accordingly instead of reusing a common desktop or frontend template.
The third layer is self-repair. Without a debugger or log output, locating compile and link errors is extremely costly, and the model had to adjust repeatedly based on error messages. This stage is what most clearly separates tools in real usability.
The test also exposed typical weaknesses: details of obscure platform protocols tend to be inferred in ways that are “reasonable but wrong”; external resources such as font files cannot be conjured out of nothing; and under a long context, early constraints can get diluted. These three points determine the practical strategy.
5. Engineering Methods That Fix the Weaknesses
Four general practices address the weaknesses above, independent of the specific tool.
- Fill the gap with a local knowledge base. Organize platform specifications, protocol header descriptions, and build constraints into searchable context so the model can “check first” before generating instead of guessing by probability.
- Put constraints up front and make them verifiable. Write inviolable rules into a project-level instruction file, restate them at the start of every task round, and pair them with executable validation scripts so violations surface immediately.
- Work in small closed loops. Cut the big goal into milestones such as “display one pixel,” “draw one line of Chinese text,” “move the paddle,” and “collide and clear a brick.” Each step is independently verifiable, which prevents errors from accumulating.
- Separate resources from code. Keep fonts, configuration, and other resources external as data files loaded at runtime, which sidesteps the model’s inherent limits in generating binary resources.
A sample project constraint file can be very short:
# Project Constraints- Goal: a graphical mini-game under the firmware shell, with Chinese support, no audio- Allowed dependencies: base libraries and firmware-provided protocol interfaces only- Forbidden: introducing any high-level graphics framework or script runtime- Every change must keep the project compilable and state how it was verified
6. How This Differs from Completion-Style Tools
The two categories of tools people usually compare are not on the same axis. One is centered on a conversational agent, emphasizing autonomous execution, cross-file changes, and long-chain task progression. The other is centered on in-editor completion, emphasizing low latency, tight context fit, and line-by-line output. The former suits building from zero and refactoring; the latter suits incremental development in a mature project.
So “which one performs better” is a false question. The sensible framework is fit with the task shape: for building from scratch, cross-module changes, and scenarios that need repeated trial and error, agentic tools deliver more value; for local logic completion and boilerplate generation, completion tools are more efficient. In practice the two coexist rather than replace each other.
7. Cost, Latency, and Model Selection
Another practical variable in the experiment is cost. High-performance models respond fast and reason clearly, but usage-based billing is a noticeable burden in high-frequency daily development, while a subscription with a predictable quota is friendlier to long-term investment. A common industry compromise is tiered scheduling: grade tasks by complexity, hand core design to the more capable model, give repetitive and formatting work to a lightweight model, and reduce wasted calls through local caching and context reuse.
The key point is that selection should not rest on a single leaderboard but on three things: task completion rate, number of rework rounds, and cost per unit of effective output. Rework rounds are the most overlooked metric and the one that most affects total cost.
8. Where the Development Paradigm Actually Shifts
The real takeaway from this kind of practice is not whether a model can write a game, but how the workflow gets rewritten. Traditionally, an engineer’s main cost is translating an idea into code. Under agentic collaboration, the cost moves to requirement description, constraint definition, validation design, and result review. Accordingly, teams need three new assets: a searchable local knowledge base, executable acceptance scripts, and traceable change records.
More broadly in firmware and low-level development, this mode is especially friendly to two kinds of work. One is creative implementation, where the model can quickly produce several candidate skeletons to choose from. The other is porting to new hardware and new platforms, where the model can significantly compress the time spent writing boilerplate and initialization code, letting engineers focus on the differentiated critical path.
9. Conclusion and a Reusable Checklist
The conclusion under extreme constraints is cautiously optimistic: AI coding tools can already complete the loop from zero to a runnable program on their own, but reliability depends on external knowledge supply and validation mechanisms rather than on the model itself. The reusable checklist:
- Use a small, independently verifiable goal as a capability baseline test.
- Turn inviolable constraints into a project-level instruction file and restate them every round.
- Prepare a local knowledge base for obscure platforms: check first, then generate.
- Split work by milestones and keep every step compilable and runnable.
- Externalize resources to avoid the binary-generation weakness.
- Evaluate models by rework rounds and cost per unit of effective output, not single-point performance.
Follow this path and the efficiency gains in low-level and firmware development are sustainable, not a one-off demo effect.
