Calling Box64 an "emulator" is accurate, but it can also be misleading. Many people picture something like a games-console emulator or a virtual machine that recreates an entire computer. Box64 takes a narrower and smarter approach, and that approach explains both its impressive speed and its limitations. This article looks inside the Box64 emulator in plain language.
Process emulation, not machine emulation
A full-system emulator such as QEMU in system mode simulates an entire PC: processor, memory controller, disk, network card and BIOS. It then boots a complete operating system inside that simulation. This is flexible but heavy, because everything, including the guest kernel, must be emulated.
Box64 emulates only a single Linux process. Your real ARM64 Linux kernel handles files, networking, memory and scheduling. Box64's task is limited to two things: understanding the x86_64 instructions inside the program, and making sure that when the program asks the system for something, the request reaches the host correctly. Because the expensive parts of a computer are already running natively, Box64 avoids most of the overhead that makes full-system emulation slow.
Part one: the ELF loader
Linux programs are stored in the ELF format. When you run box64 ./program, Box64 first acts as a loader. It reads the ELF headers, maps the program's code and data into memory at the right addresses, prepares the stack and environment exactly as an x86_64 Linux system would, and identifies the shared libraries the program depends on.
At this point, Box64 makes a crucial decision for each library.
Part two: native library wrapping
This is Box64's signature idea. Many programs spend most of their time inside system libraries: the C library for memory and strings, the maths library, graphics libraries such as OpenGL and Vulkan, multimedia libraries such as SDL2 and audio libraries such as OpenAL. These libraries already exist on your ARM64 system, compiled natively.
Box64 contains "wrappers" for hundreds of these libraries. A wrapper is a small piece of glue code that converts a call made according to x86_64 conventions into the equivalent call to the native ARM64 library, then converts the result back. When an x86_64 game calls an OpenGL function, Box64 forwards it to the native OpenGL driver. The graphics work runs at full native speed.
When the start-up log says "Using native(wrapped) libGL.so.1", that is wrapping at work. When it says "Using emulated", Box64 could not find a wrapper and will translate that library's x86_64 code instead, which is slower but still functional.
Part three: the dynamic recompiler
The program's own code still has to run, and that is where the Dynarec comes in. Box64 could interpret each x86_64 instruction one by one, and it does include an interpreter for that purpose. But interpretation is slow, because every instruction must be decoded and simulated every time it executes.
The Dynarec, short for dynamic recompiler, takes a better route. When execution reaches a block of x86_64 code that has not been seen before, Box64 translates the whole block into native host instructions, stores the translation in a cache and runs it. The next time the program reaches that block, which is often thousands of times per second in a game loop, Box64 jumps straight to the cached native code.
Box64 has Dynarec back ends for ARM64, RISC-V 64 and LoongArch64, and a PowerPC 64-bit little-endian back end was introduced as a work in progress in v0.4.2. On other 64-bit architectures, Box64 falls back to the interpreter.
Why translation is tricky
Translating x86_64 to ARM64 is not a simple word-for-word exchange. The two architectures differ in important ways:
- Flags. x86_64 updates condition flags after most arithmetic instructions. ARM64 updates them only when asked. Box64 tracks which flags are actually needed later so it can skip unnecessary work.
- Memory ordering. x86_64 guarantees a relatively strict order of memory operations between threads; ARM64 is more relaxed. Multi-threaded programs may depend on x86 behaviour, which is why the
BOX64_DYNAREC_STRONGMEMoption exists. - Floating point and SIMD. The x87 floating-point unit and the SSE and AVX vector instructions need careful mapping onto ARM's NEON and SVE capabilities.
- Self-modifying code. Some programs, particularly those protected against tampering, change their own instructions while running. Box64 must detect this and discard stale translations.
Memory handling
x86_64 programs sometimes assume a 4 KB memory page size. Most ARM64 Linux kernels also use 4 KB pages, but some use 16 KB or 64 KB pages. Box64 works best on 4 KB kernels, and this is why Raspberry Pi 5 users are often advised to choose the 4 KB kernel for the widest compatibility.
What about 32-bit programs?
Box64 was designed for 64-bit code. Its sibling project, Box86, handles 32-bit x86 programs on 32-bit ARM. More recently, Box64 gained an optional Box32 mode that lets a single 64-bit Box64 build run many 32-bit x86 Linux programs, which matters because some ARM64 systems no longer include 32-bit support at all.
How fast is the Box64 emulator?
Performance depends on where a program spends its time. A game that leans heavily on OpenGL or Vulkan can run close to native speed, because the expensive graphics calls never pass through translation. A program that performs heavy calculations inside its own code, such as a compression utility or a physics engine, runs at whatever speed the Dynarec can achieve, typically noticeably slower than a native ARM build but far faster than interpretation.
| Workload | Main bottleneck | Typical Box64 experience |
|---|---|---|
| Graphics-heavy game | GPU driver | Often close to native |
| Command-line utility | Translated code | Usable, slower than native |
| Heavy number crunching | Translated SIMD code | Clearly slower than native |
| Protected or self-modifying software | Re-translation | Variable; may fail |
Box64 compared with other approaches
FEX-Emu takes a similar user-space approach on ARM64 and focuses on accuracy, with thunks for selected libraries. QEMU user mode is extremely portable but generally slower. Apple's Rosetta 2 combines ahead-of-time and just-in-time translation with hardware assistance that exists only on Apple silicon. Our Box64 vs FEX vs QEMU comparison looks at these differences in depth.
The translation cache in practice
Each translated block lives in a cache in memory. The cache is what makes Box64's speed possible, but it also explains a few behaviours users notice. The first minutes of a game can stutter slightly while new code is translated, then performance settles as the cache fills. Large programs with lots of rarely used code use more memory for translations. And when a program changes its own code, Box64 must notice the change, discard the affected translations and create new ones, which costs time.
Box64 protects translated code by tracking which memory regions have been translated and watching for writes to them. Several Dynarec options influence how aggressively this checking is done, trading safety against speed. Release 0.4.2, for example, introduced a new approach to one of these modes, aimed at handling programs that write near their own code more efficiently.
Why wrapping occasionally causes surprises
Native library wrapping is the main reason Box64 is fast, but it introduces one subtle challenge: the native library on your system may not be exactly the version the program was built against. Most of the time this does not matter, because system libraries keep stable interfaces. Occasionally, a program depends on behaviour specific to an older or newer version. In those rare cases, providing the x86_64 copy of the library and telling Box64 to emulate it instead can solve the problem. Box64 has options for controlling which libraries are wrapped, documented in its usage guide on GitHub.
Why Box64 is written in C
Box64 is written mainly in C, with code generation for each Dynarec back end. C gives the developers precise control over memory layout, calling conventions and the low-level details that binary translation demands, while keeping the program small and quick to start. It also makes Box64 easy to compile on a wide range of Linux systems with standard tools, which is part of why it spread so quickly across boards, phones and servers.
Frequently asked questions
No. Box64 emulates a single Linux process, not a whole computer. Your real kernel and native libraries do most of the work.
The Dynarec is Box64's dynamic recompiler. It translates blocks of x86_64 code into native host instructions and caches them for reuse.
It means Box64 is passing calls for that library straight to the native host version instead of translating the x86_64 copy.
Yes. Setting BOX64_DYNAREC=0 forces the interpreter, which is slower but useful for diagnosing whether a crash is caused by translation.
Box64 has Dynarec back ends for ARM64, RISC-V 64 and LoongArch64, a work-in-progress PPC64LE back end, and an interpreter for other 64-bit Linux systems.
Conclusion
The Box64 emulator is fast because it is selective. It emulates one process instead of a whole computer, hands familiar library calls to native code and translates the remaining instructions once rather than over and over again. Knowing how these parts fit together makes Box64's behaviour far easier to understand, from its excellent results in graphics-heavy games to its occasional struggles with protected software.

Box64 Install Guide: Building from Source on ARM64 Linux
Box64 GitHub: Finding Your Way Around the Repository
Box64 0.4.4: What the Latest Release Brings