Evaluating LLMs in Low-Level Development: A Full-Process Assessment from Environment Setup to Game Application
Current evaluations of Large Language Models (LLMs) often focus on high-resource scenarios like web backend development and data processing. This article explores evaluating LLM coding capabilities in a low-level development environment using UEFI as a testbed. By guiding an AI assistant to build a vertical shooter game, we assess model performance across three stages: environment setup, basic functionality implementation, and feature enhancement. The findings offer developers actionable insights into layered model selection, defining human-machine collaboration boundaries, and the value of iterative prompt design in low-level programming.
I. Why Choose Low-Level Development to Evaluate LLMs?
Current industry evaluations of LLM coding capabilities mostly focus on high-resource, high-ecosystem scenarios such as web backend, scripting tools, and data processing. These tasks share common characteristics: mature frameworks, rich documentation, and abundant training data. Even if a model does not understand the underlying principles, it can still produce seemingly correct code through pattern matching.
UEFI (Unified Extensible Firmware Interface) development is a completely different litmus test:
- Scarcity of training corpus: UEFI application development accounts for an extremely low proportion of public code repositories, meaning models cannot rely on memory-based output.
- Poor debugging feedback loop: There is no browser console or unit testing framework. Errors typically manifest as black screens, system hangs, or boot failures.
- Heavy environment dependencies: The compilation toolchain, firmware emulator, and protocol call sequence must all be correct; a failure in any single step will cause the entire workflow to fail.
Therefore, evaluating models in a scenario where they “cannot rely on rote memorization” is the only way to truly distinguish whether they understand the development process or are merely regurgitating common code snippets. This article follows a multi-round, progressive evaluation method: using a graphical vertical shooter game as the target application to observe the model’s actual performance across three stages: environment setup, basic functionality, and feature enhancement.
II. Evaluation Environment and Method Design
2.1 Target Application Definition
A vertical shooter game was chosen as the test vehicle because it can cover the core capabilities of UEFI development within a limited amount of code:
| Game Feature | Corresponding UEFI Technical Point |
|---|---|
| Graphics rendering | GOP (Graphics Output Protocol) frame buffer operations |
| Keyboard input | Simple Input Protocol event polling |
| Collision detection | Pure algorithmic logic, assessing code organization skills |
| Chinese character display | Glyph extraction and dot matrix rendering, assessing resource handling |
| Weapon upgrades/Items/Boss battles | State machine and data structure design capabilities |
Compared to a simple Breakout demo, a shooter game has higher state complexity, making it easier to expose a model’s architectural weaknesses.
2.2 Evaluation Process
The evaluation adopts a typical workflow for collaborating with AI coding assistants: first initialize the project specification file, clearly defining constraints such as the runtime environment (UEFI Shell), graphics approach (GOP protocol), and pure software application (no audio dependencies). Then, commands are issued in rounds to observe the model’s autonomous planning and execution capabilities.
A detail worth emphasizing: the initialization prompt should explicitly state the runtime environment and protocol selection. In low-level development, the most common mistake models make is making unwarranted assumptions based on high-level frameworks (e.g., assuming the existence of a standard library or OS scheduling). Writing constraints clearly significantly reduces ineffective rework.
III. Key Stages Analysis
3.1 Environment Setup: The First Hurdle for Model Autonomy
Environment setup is the first step in low-level development and the most intuitive reflection of a model’s autonomy. The ideal execution sequence should be:
- Download and configure the cross-compilation toolchain;
- Pull the firmware development framework source code;
- Configure the emulator package (EmulatorPkg) so the application can be debugged and run on a standard OS;
- Complete the first compilation and produce an executable EFI module.
In actual testing, highly capable models can independently complete the entire process without human intervention. Weaker models often get stuck repeatedly during the emulator compilation phase, with typical issues including toolchain version mismatches, missing compilation options, and path configuration errors.
The key evaluation point here is whether the model understands “why these steps are necessary” rather than executing them mechanically. For example, a strong model will proactively choose the emulator approach over flashing real hardware because it can infer the intent of “pure software verification” from the prompt. This reasoning ability is far more important than memorizing compilation commands.
3.2 Basic Functionality: First-Pass Success Rate is the Core Metric
The basic version of the game needs to implement graphics rendering, input handling, collision detection, and the main game loop, including basic elements like health and shields. The measurement standard is very clear: does it compile successfully on the first attempt.
A successful first pass means the model provided correct answers to the following issues throughout the code generation process:
- The call sequence of the GOP protocol (LocateProtocol first, then query Mode info, then calculate the frame buffer address);
- Whether memory allocation complies with the stage constraints of the UEFI Boot Service;
- Whether the non-blocking polling of keyboard events is correctly implemented to prevent the game loop from hanging.
Based on experience from multiple rounds of comparative testing, the differences among models in “first-pass success rate” are very pronounced. Some models can successfully compile and run directly in the first round, while others require one or two rounds of rework due to compilation errors. For developers, this metric directly correlates to actual costs: every additional round of rework means another round of manual review, error localization, and regeneration.
3.3 Feature Enhancement: Chinese Rendering and Gameplay Expansion
The second round of testing focuses on three enhancement directions: UI localization, visual improvements for the player and enemy aircraft, and an item and weapon upgrade system.
Localization is a highly representative issue in low-level development. There is no system font service in the UEFI Shell environment, so displaying Chinese characters requires manually resolving the glyph issue. A feasible, general approach is:
// Concept: Retrieve the 16x16 glyph from the dot matrix font library indexed by Unicode code point// Then write it into the frame buffer bit by bit, expanding each point into several pixelsVOID DrawChineseChar(UINT16 code, UINT32 x, UINT32 y, UINT32 color) {const UINT8 *glyph = LookupGlyph(code);for (int row = 0; row < 16; row++) {for (int col = 0; col < 16; col++) {if (glyph[row * 2 + col / 8] & (0x80 >> (col % 8))) {PutPixel(x + col, y + row, color);}}}}
Model performance diverges significantly here: models with a solid understanding will proactively propose a solution to “extract glyphs from existing font files and generate dot matrix arrays,” correctly handling the indexing of double-byte encoding. Models lacking understanding might try to directly output UTF-8 strings to the frame buffer, resulting in gibberish.
Gameplay expansions like weapon upgrades, wingmen, and boss battles test the incremental modification capability: the model needs to make structural extensions to the existing code skeleton rather than starting from scratch. When evaluating, attention should be paid to whether existing functionalities are broken after modification and whether new states are correctly integrated with the existing collision detection logic.
IV. Takeaways for Developers
4.1 Establish a “Layered Evaluation” Model Selection Method
Based on these practices, it is recommended that developers adopt a layered evaluation framework when selecting AI coding tools for their teams:
- Environment Setup Layer: Provide a real but niche engineering scenario to see if the model can autonomously complete toolchain configuration;
- Single-Point Implementation Layer: Assess the first-pass success rate of technical points with clear right/wrong answers, such as protocol calls and memory management;
- Architecture Evolution Layer: Add incremental features to existing code to assess context retention and refactoring capabilities.
Judging a model solely by its performance on mainstream framework demos can easily lead to an overestimation of its actual engineering value.
4.2 Human-Machine Collaboration Boundaries in Low-Level Development
Even the best-performing models require human oversight in low-level development. The recommended collaboration boundaries are:
- Can delegate: Boilerplate code generation (protocol call templates, data structure definitions), build script writing, comments and documentation;
- Must review: Memory lifecycle management, timing assumptions related to concurrency and interrupts, constant values related to hardware specifications;
- Fully manual: Firmware signing, secure boot chain, and flashing operations involving production devices.
4.3 The Value of Iterative Prompt Design
Experience from multi-round testing consistently shows that breaking a large goal down into a progressive sequence of “minimum runnable version -> localization/visual enhancement -> gameplay expansion” is far more effective than issuing the complete requirement all at once. Producing a verifiable result each round not only reduces the probability of errors in a single generation but also significantly lowers the cost of troubleshooting.
V. Conclusion
Low-level system development is a true litmus test for LLM coding capabilities. Tests show that the new generation of models has made substantial progress in environment setup autonomy and first-pass success rates, achieving full-process, zero-human-intervention in some scenarios. However, in details like glyph processing and incremental refactoring, capability differences among models remain significant. For developers, rather than chasing model version numbers, it is better to establish a personalized layered evaluation method and make selection decisions based on the pass rate in real business scenarios. This is the crucial step for AI-assisted programming to transition from “demo-ready” to “engineering-ready.”
