FEX-Emu, usually written simply as FEX, is an open-source user-mode emulator that lets 32-bit and 64-bit x86 Linux applications run on ARM64 Linux systems. In OS compatibility, it belongs to the family of tools that translate machine code rather than emulate a whole computer: it converts x86 instructions to ARM64 instructions at run time and passes Linux system calls directly to the host kernel.
FEX targets demanding desktop workloads, above all games running through Wine and Proton, on ARM64 laptops, handhelds and single-board computers. It is distributed under the MIT license and is developed in the open, with contributions from engineers working on ARM-based Linux gaming hardware.
How FEX-Emu translates x86 code
FEX works by dynamic binary translation: it decodes blocks of x86 or x86-64 code, converts them to an internal intermediate representation, optimizes that representation and emits native ARM64 code. Translated blocks are cached, so code that runs repeatedly pays the translation cost only once.
- The frontend decoder reads x86 instructions, including SSE, AVX and AVX2 extensions in current releases.
- The IR optimizer removes redundant flag calculations and register moves.
- The JIT backend generates ARM64 machine code and links translated blocks together.
- A code cache stores the result, and an optional ahead-of-time cache can persist it between runs.
Because FEX is a user-mode emulator, the guest program shares the host kernel. FEX converts x86 system call numbers and structures to their ARM64 equivalents, which avoids booting a guest operating system and keeps overhead far lower than full-system emulation.
Key components and configuration
A working FEX installation consists of several parts, and each solves a specific compatibility problem. The table summarizes the components a user configures.
| Component | Purpose | Practical note |
|---|---|---|
| FEXInterpreter | Loads and runs an x86 executable | Registered with binfmt_misc for transparent launch |
| x86 root file system | Supplies x86 libraries such as glibc | Downloaded or built as an image per distribution |
| Library thunks | Forward calls to native ARM64 libraries | Used for OpenGL, Vulkan and similar APIs |
| FEXConfig | Sets per-application options | Controls memory model and optimizations |
| Code cache | Stores translated blocks | Reduces stutter on later runs |
Library thunks are central to performance. Instead of emulating an x86 graphics driver, FEX intercepts calls to libraries such as libGL or libvulkan and forwards them to the native ARM64 library, so the GPU work runs at full native speed.
Memory ordering and page size constraints
The hardest problem for any x86-on-ARM translator is memory ordering. x86 processors follow a strong model called total store order (TSO), while ARM64 allows more reordering, so multithreaded x86 programs can fail on ARM unless the translator adds ordering guarantees.
| Approach | Correctness | Performance cost |
|---|---|---|
| Full TSO emulation | Highest | Significant on many workloads |
| Hardware TSO mode | High | Low, but only on CPUs that offer it |
| Relaxed per-application setting | Risk of rare data races | Lowest |
Page size is a second constraint. x86 software assumes 4 KiB memory pages, while some ARM64 kernels, including those used on Apple silicon Linux ports, run with 16 KiB pages. Such systems commonly run FEX inside a lightweight virtual machine with a 4 KiB page kernel to preserve compatibility.
FEX-Emu compared with other compatibility tools
FEX occupies a specific niche: Linux on ARM64 running x86 Linux binaries. Several neighboring tools address overlapping goals with different designs and trade-offs.
| Tool | Host system | Main design trait |
|---|---|---|
| FEX-Emu | ARM64 Linux | JIT with IR optimizer and library thunks |
| Box64 | ARM64, RISC-V and other Linux hosts | Dynarec with many wrapped native libraries |
| QEMU user mode | Many Linux hosts | Broad architecture coverage, lower speed |
| Rosetta 2 | macOS on Apple silicon | Proprietary ahead-of-time and JIT translation |
| Wine and Proton | Linux, macOS | Windows API layer, not a CPU translator |
FEX and Wine are complementary rather than competing. Wine translates Windows API calls into Linux calls, while FEX translates x86 instructions into ARM64 instructions; a Windows game on an ARM64 Linux device therefore needs both layers at once.
Limitations and practical expectations
FEX delivers usable speed for many applications, but results vary by workload and depend on the CPU, the memory model setting and how much time a program spends in thunked libraries. CPU-bound code typically runs noticeably slower than native ARM64 code, while GPU-bound games lose less.
- Kernel modules and drivers cannot be translated, because FEX runs only user-space code.
- Anti-cheat systems and software that inspects its own environment may refuse to run.
- First-run stutter occurs while the JIT translates new code; the code cache reduces it later.
- Missing or mismatched files in the x86 root file system are a common cause of startup failures.
Troubleshooting usually starts with the per-application configuration. Enabling strict TSO emulation resolves crashes and graphical corruption in multithreaded programs, while disabling it for a stable title recovers speed. Logging options in FEXConfig show which libraries are thunked and which are emulated, which helps identify a missing native library on the host.
For deployment, distributions increasingly ship FEX as a packaged component with a preconfigured root file system and binfmt_misc registration. This integration makes x86 binaries launch transparently from a terminal or a game launcher, so users rarely need to invoke FEXInterpreter by hand. Keeping FEX and the root file system updated together avoids subtle library version conflicts.
A non-technical view
Computer programs are written in the language of a particular kind of processor. Most Linux games and tools speak the language of Intel and AMD chips, but many new laptops and handheld devices use ARM chips, which speak a different one. FEX-Emu acts as a fast live interpreter between the two.
It reads the program a piece at a time, translates each piece once and remembers the translation. For graphics, it simply hands the work to the device’s own drivers. The program runs as if it were on the chip it expected, only somewhat slower.
A concrete example
A hobbyist owns an ARM64 laptop running a Linux distribution and wants to play an older Windows game from a digital store. The game exists only as a 64-bit x86 Windows executable, so the setup combines Proton for the Windows layer and FEX for the processor layer.
The user installs FEX from the distribution’s packages, downloads a matching x86 root file system and enables the Vulkan and OpenGL thunks so rendering uses the native ARM64 driver. The first launch shows brief stutter while code is translated. After the code cache fills, the game holds a steady 60 frames per second at 1080p with medium settings, comparable to a mid-range x86 laptop.