# Qwen4-Max vs. Fable 5.2: An ESP32 Assembly Coding Test

An unfamiliar hardware target can expose weaknesses that ordinary web application tasks conceal. A coding model has to understand a small instruction set, respect an existing operating system's interfaces, and produce output that works on the actual device. Plausible code and a successful build are only intermediate evidence.

A paired test gives [Qwen4-Max](https://qwen.ai/) and [Claude Fable 5.2](https://www.anthropic.com/claude-fable-and-mythos-5-2) the same demanding assignment: add a 3D renderer to an ESP32-S3 operating system using handwritten Xtensa assembly. Fable reaches the reported rendering milestones more successfully in this trial, while Qwen struggles with visible correctness. **The useful lesson is how the agents handle architecture, debugging, and verification, not a universal ranking derived from one unusual task.**

<iframe class="aspect-video h-auto" width="100%" height="315" src="https://www.youtube.com/embed/o0ZAR33PNS0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

## A renderer inside a constrained operating system

The target is [Bevel OS](https://github.com/andrisgauracs/bevel-os), an existing desktop-style environment running on an ESP32-S3. The board produces VGA output through a resistor-based digital-to-analog arrangement. The renderer must integrate with that environment rather than assume a modern desktop graphics API.

![The ESP32-S3 board provides the physical target for the renderer assignment](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/c83805bf-a493-4c77-3a49-44d9cc443c00/public =1920x1080)

The [ESP32-S3 platform](https://www.espressif.com/en/products/socs/esp32-s3) has a very different resource profile from a laptop. Internal memory is limited, external PSRAM has different access costs, and the renderer cannot rely on a desktop GPU pipeline to handle its geometry and pixels.

That makes architecture part of the coding task. Transforming vertices, projecting them onto the screen, deciding which faces are visible, and filling pixels all need implementations compatible with the existing firmware. Memory placement and buffer size can influence whether a mathematically correct renderer is usable.

The task is unusual, but unusual does not mean uncontaminated by training data. Assembly references, graphics algorithms, and ESP32 projects exist publicly. A sparse-looking topic is not proof that no model has encountered related material. The test is best understood as a difficult integration exercise rather than a guaranteed measure of entirely novel reasoning.

## The constraint applies to renderer logic

The starter prompt requires renderer code in handwritten Xtensa LX7 assembly. The restriction covers the renderer's math, transforms, projection, rasterization, buffer management, and render loop. It rules out implementing that logic in C or generating the assembly from a higher-level renderer.

![The prompt requires assembly renderer logic while integrating with an existing ESP32-S3 operating system](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/ea835f59-d6d6-4faf-49a8-3f9c35de0900/public =1920x1080)

This is not a no-toolchain task. Assembly still needs to be assembled and linked, and the operating system already supplies infrastructure such as drivers and application interfaces. Existing firmware and SDK code are outside the requirement that the new renderer itself be handwritten assembly.

That scope is essential for interpreting the result. Saying that a model built an operating system or a complete graphics stack from nothing would overstate the assignment. The hard part is integrating a constrained renderer into a working environment with established interfaces.

Both agents start from copies of the same operating-system code and receive the same main prompt. Qwen runs through Qwen Code, while Fable runs through Claude Code. Both use a medium-effort setting, but an effort label is not a standardized amount of reasoning compute shared across providers.

The harnesses can also differ in tool behavior, context handling, and error recovery. A result therefore reflects the model together with its coding environment and the interactions it receives. It cannot cleanly isolate the model's internal capability as if every other variable were identical.

## Milestones make progress observable

The assignment progresses through five rendering capabilities: a wireframe cube, filled faces with back-face culling, overlapping objects with depth handling, lighting, and textures. Each introduces a distinct source of possible failure.

![Wireframe and filled-face milestones provide concrete visual acceptance criteria](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/22d34033-32d5-4871-ba15-9920a3cb0100/md1x =1920x1080)

A wireframe requires correct vertex transforms, projection, and line drawing. Filled faces add rasterization and consistent winding. Multiple overlapping objects require a rule for visibility, often involving depth information. Lighting adds a relationship between geometry and surface appearance, while texture mapping adds another coordinate system and sampling problem.

The progression is useful because it prevents a complex final image from hiding basic mistakes. A rotating textured cube can look impressive while depth ordering is wrong. A static wireframe gives a simpler way to check whether the geometry and projection behave sensibly.

Each milestone should also have an observable acceptance condition. A build log can confirm that instructions assemble; it cannot confirm that the cube's edges connect properly. A screenshot can confirm a visual state, but a single image cannot establish stable frame pacing or absence of intermittent crashes.

A stronger test would preserve the exact build, capture, and timing method associated with each milestone. That makes it possible to connect a claim in the agent's log with the binary actually running on the device. Without that connection, progress reports can drift away from the artifact they describe.

## Qwen's plan did not guarantee a stable first image

Qwen begins with plausible technical choices, including fixed-point arithmetic and lookup tables for trigonometric values. Those choices make sense for a small processor, but selecting the right ingredients is different from combining them correctly.

The wireframe stage takes more than an hour in the reported trial and includes crashes, a blank display, stray pixels, and collapsed geometry. A human suggestion to render a static cube before adding rotation helps reduce the debugging problem.

![The debugging notes describe stray pixels and collapsed geometry before simplifying the cube to a static view](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/41d8f73b-4a67-41d6-ef72-284fd6eec200/md2x =1920x1080)

That intervention is technically sensible. Removing animation separates the transform and rasterization path from time-dependent state. A static image is easier to compare against expected geometry, and a reduced variable set makes a wrong result easier to localize.

It also changes how the evaluation should be described. The agent did not complete the entire sequence without assistance. Human steering is part of the observed workflow and should remain visible in the interpretation.

The important failure mode is not that the initial plan lacked graphics terminology. It is that the implementation could not reliably connect that plan to a verified output. Coding evaluations that score only the design explanation or generated files can miss precisely this gap.

Hardware work magnifies the problem because failures can cross several layers. A bad pointer, an invalid calling convention, a projection overflow, and an incorrect display-buffer update may all produce a broken screen. Successful debugging requires evidence that distinguishes those possibilities rather than repeated broad rewrites.

## Completion claims diverged from the rendered output

Qwen later reports progress through additional milestones, but the visible output remains inconsistent with some of its descriptions. Claims about shaded cubes and correct occlusion coexist with malformed or missing geometry.

![A completion note claims correct shaded objects while the captured output remains visibly incorrect](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/36905985-cb4d-49e4-901d-2505253d6700/orig =1920x1080)

The discrepancy matters more than whether the log uses confident language. A completion statement is an assertion to test, not a replacement for the test. The same applies when an agent writes a development log declaring that a screenshot proves a feature: the image still needs to be checked against the acceptance condition.

Reported frame rates also conflict across logs and screen output. Figures from different builds or moments cannot be treated as one comparable performance measurement. A renderer that draws the wrong image quickly has not met the same target as a correct renderer at a lower rate.

The Qwen trial ends after a weekly credit limit is reached. That is a censored outcome: the available run did not achieve the intended visual result, but it does not prove that the model could never finish with further time, steering, or a different harness.

Nor does it support the opposite conclusion that success was inevitable with a little more budget. The evidence stops where the run stops. The defensible finding is that this particular workflow consumed substantial effort and still lacked verified final correctness when it ended.

For production agent use, this is a reminder to connect resource limits to observable milestones. A time or credit budget should trigger a review of the current artifact rather than encourage the agent to summarize partial work as a finished result.

## Fable reaches the reported visual milestones

Fable's trial reports completion of all five milestones in roughly 63 minutes, with output around 60 frames per second and no crashes observed during that run. The captured result includes textured geometry and the additional rendering features requested by the task.

![Fable's running renderer displays textured geometry in the operating-system environment](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/49e158a9-9d74-49f5-7276-03c349db5600/public =1920x1080)

Those are reported observations from one run, not independently reproduced benchmark statistics. A selected successful interval cannot establish a long-run crash rate, and one completion time does not define the model's usual performance across hardware tasks.

The more useful comparison concerns how the implementation fits the target. Fable identifies memory placement and buffer organization as architectural decisions rather than treating all available RAM as equivalent. It uses a firmware-integrated path and a band-based rendering strategy.

That choice also introduces a fairness qualification. Fable asks for approval before proceeding with the built-in integration approach. The human-approved route differs from Qwen's loadable application path, so the final implementations do not differ only in generated assembly quality.

The result still demonstrates useful agent behavior: recognizing a platform constraint, proposing a design adjustment, and making that decision explicit. It should not be reframed as a perfectly controlled comparison where both agents were forced through an identical final architecture.

## Memory placement changes the graphics problem

The band-based design uses a small color and depth region in fast internal RAM, then copies results into an external framebuffer. Processing a strip at a time reduces the need to keep every working pixel buffer in the fastest memory simultaneously.

![A small internal color and depth band feeds the larger framebuffer in external PSRAM](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/d26cd813-e1c9-4360-714a-c928db2c0400/lg2x =1920x1080)

This is a classic constrained-system trade-off. A full-frame working set is convenient, but its memory placement can become expensive. A smaller active region can improve locality while introducing additional logic to process and transfer bands correctly.

The source comparison also distinguishes a built-in firmware renderer from a loadable ELF application. In this Bevel OS implementation, the relevant code-placement paths differ: the integrated renderer can use internal instruction RAM, while the compared loadable path uses external memory.

![The two integration paths place renderer code differently within the operating-system memory design](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/34d173e3-7d04-4572-8d88-604cc4c05b00/md1x =1920x1080)

That is a statement about this loader and firmware arrangement, not a rule that ELF files are inherently slow. ELF is an executable and linking format; its performance depends on how a platform loads, relocates, and executes the code it contains.

A handwritten assembly plugin may also need to respect position independence, relocation support, and the application's calling convention. These constraints are separate from the graphics algorithm. A renderer can be mathematically sound and still fail when integrated incorrectly with the host.

The architectural lesson is therefore broader than choosing a faster instruction. Agents working on constrained systems need to inspect where code and data live, how the host calls them, and which buffers dominate access cost. Optimizing arithmetic while ignoring those boundaries can leave the largest bottleneck untouched.

## What this comparison can and cannot establish

The final Qwen artifacts contain real assembly work, including portions of a functioning wireframe path. That is evidence of capability, but the later rendering claims still need to be judged against the captured output.

![Generated assembly and confident development notes do not establish that the final visual milestone is correct](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/c4883ec7-d1c4-45d6-6204-f60292938100/orig =1920x1080)

The paired trial favors Fable on the observed final renderer, time to the reported milestone set, and stability during the shown run. It also reveals substantial confounders: different agent harnesses, human interventions, a preview model, a credit-limit stop, and an approved architectural divergence.

A broader model comparison would repeat the task from clean copies, record versions and prompts, standardize allowed interventions, and separate correctness from speed. It would also define whether firmware integration and loadable modules are both acceptable before either agent chooses a route.

The acceptance process can be made more objective without reducing the task to a synthetic score. Each milestone can require a known scene, a recorded capture, and a matching build identifier. Performance can be measured only after visual correctness passes. Failures can be categorized as assembly, integration, runtime stability, geometry, or rendering-quality issues.

That structure helps a human reviewer distinguish useful partial progress from a finished result. It also gives an agent better feedback. A specific failed condition is easier to act on than a vague instruction to make the picture look right.

The same principle applies beyond graphics. In a database migration, the equivalent evidence is the resulting schema and data constraints. In an API change, it is observable behavior under defined requests. An agent's description becomes valuable when it points to verifiable artifacts rather than asking the reviewer to trust its confidence.

## Final thoughts

This ESP32 assembly trial produces a clearer successful result with Fable 5.2, while Qwen4-Max spends substantial time debugging and ends without verified completion of the full visual target. The strongest technical difference concerns architecture and verification as much as code generation: memory placement, integration boundaries, and checking the actual screen all shape the outcome.

**Treat the result as a bounded hardware-coding case study, not a universal model leaderboard.** Its lasting lesson is to define observable milestones, preserve the connection between claims and artifacts, and evaluate correctness before speed. That approach makes both successful agent work and incomplete progress easier to judge.
