
- Boots: No
- Release: None
- File: None
Leonida Is Not an Emulator: Static Recompilation Explained
Leonida is often called an emulator. It is not one. This guide explains static recompilation, emulation and native execution, and why the difference changes what to expect.
Contents
Three Ways to Run Old Code on New Hardware
There are three broad ways to run a program written for one machine on a different machine. Emulation pretends to be the original hardware and translates instructions while the program runs, which works for very different processors but costs speed and accuracy. Dynamic recompilation translates blocks of code as they are reached, caching the results, which is faster but still a translation layer in the loop. Static recompilation translates the whole program ahead of time, once, so the result runs natively on the new machine with no translator in the loop.
Leonida uses the third way, and it can do so because the Xbox Series processor and a PC processor share the x86-64 instruction set. Leonida does not need to translate processor instructions at all. The game's code is loaded and run as it is. What needs rebuilding is everything around the code: the operating system calls, the graphics interface and the data formats. That is why the project is described as static recompilation even though the code itself is not rewritten.
Why Calling It an Emulator Misleads
Calling Leonida an emulator sets the wrong expectations in three ways. First, it suggests the game is being pretended into running, with the performance cost and compatibility guessing that emulation implies, when the design goal is native execution. Second, it suggests any game for the console could be dropped in, when Leonida is built around one game's measured package, formats and system calls. Third, it invites comparisons with emulators that already play games, when Leonida plays nothing yet and should be judged on its translator, exporter and loader instead.
The name matters for search as well. Readers searching for an emulator want something that runs today. Readers searching for Leonida want to understand a build that does not run yet. Mixing the two wastes the first group's time and misleads the second. This site therefore uses the project's own term, static recompilation, everywhere, and explains it rather than replacing it with a friendlier word.
What Static Means in Practice
In practice, static here means ahead of time and on the builder's PC. Shaders are carved from the package, disassembled and translated before any run. Assets are exported and converted before any run. The runtime is built before any run. When the day comes to attempt a boot, the pieces will already exist in their translated forms, and the run itself will be native code talking to shims and to Vulkan, with no translation step in between.
The cost of that approach is paid up front, in build time, disk space and toolchain setup. The benefit, if the remaining work succeeds, is a program that runs as native Windows code rather than as a guest inside a pretended console. The how shader translation works page shows the largest ahead of time job, and the how the port is put together page shows how the translated pieces fit around the native code.
The Limits of the Term
Static recompilation is not a magic word, and it does not guarantee success. The translated shaders still have to be exact on real drivers. The shims still have to match console behaviour closely enough for a large, complex game. The asset formats still have to be understood completely, including the parts recorded as limitations in the export manifest. A native program that calls the wrong system behaviour is still a broken program, and the project's open pieces are exactly those behaviours that have not yet been proven.
Readers should therefore treat the term as a description of method, not as a promise of outcome. Method is checkable: the translator, the exporter and the loader can each be tested. Outcome is not yet checkable, because the game has not booted. Keeping method and outcome apart is the clearest way to read every progress report on this site.
Emulation, Recompilation and Native Execution, Side by Side
Three words are used for three different ways of running software built for another machine. Mixing them up is how readers end up expecting the wrong thing from Leonida, so the comparison below keeps them strictly apart.
| Approach | What happens to the game's code | What it means for speed and accuracy |
|---|---|---|
| Emulation | Translated or interpreted while it runs, instruction by instruction | Slower, with the emulator in the loop for every instruction |
| Static recompilation | Recompiled ahead of time, before anything runs | Native speed for the recompiled code, with system calls shimmed |
| Native execution | Built for the machine it runs on, from the start | Full speed, no translation layer for the code itself |
Leonida is the middle row. The Xbox Series processor is x86-64, like a PC processor, so most of the game's machine code can be kept and recompiled ahead of time, rather than emulated at runtime. The console's system software is reimplemented around it, and the console's precompiled GPU programs are translated to SPIR-V for Vulkan. That is why the project calls itself a static recompilation project, why it is not an emulator, and why its progress is measured in translated shaders and exported assets rather than in frames per second.
Conclusion
Leonida is not an emulator. It is a static recompilation project that runs the game's own x86-64 code natively and rebuilds the console system and graphics layers around it, with all translation done ahead of time on the builder's PC. That method explains the project's structure, its disk and toolchain demands, and its measurable progress. It does not explain away the central fact, which remains: the game does not boot yet, and the method will only be proven when it does.
Frequently Asked Questions
Is Leonida an emulator?
No. It is static recompilation. The game's code runs natively, and the console system software is reimplemented around it.
Why does the difference matter?
It changes expectations about speed, compatibility and what progress looks like. Progress is measured in translators, exporters and shims, not in games that run.
Do emulators and Leonida share any work?
Only at the level of research. Format notes and prior projects are read and credited, within licence limits, but the method and the code are Leonida's own.