# Castlevania: Aria of Sorrow gets a self-contained static PC recompiler

> AriaOfSorrowRecomp v0.0.1 turns a Castlevania: Aria of Sorrow GBA ROM into a standalone Windows x86_64 executable in under a second without external compilers.

- Published: 2026-11-24T11:52:35Z
- Score: 9/10
- Tags: pc, recomp, port
- Port / platforms: GBA -> PC (Windows) (Recompilation)
- Web page: https://emu-radar.customfw.xyz/news/castlevania-aria-of-sorrow-static-recompiler-v0-0-1/
- Sources: https://github.com/ZNRiver/AriaOfSorrowRecomp

Developer ZNRiver released [AriaOfSorrowRecomp](https://github.com/ZNRiver/AriaOfSorrowRecomp) v0.0.1, a static ahead-of-time (AOT) recompiler that converts *Castlevania: Aria of Sorrow* for Game Boy Advance (GBA) into a standalone native Windows x86_64 executable. Traditional static recompilation workflows emit C code and require installing Clang, MSVC, or a Windows SDK, whereas this tool packs its own ARM7TDMI and Thumb to x86_64 machine-code backend into a single ~1.15 MB binary.

Feed the CLI tool your own legally obtained `.gba` ROM and it discovers roughly 3,500+ functions (~300,000 ARM and Thumb instructions), builds a standalone `.exe` in around 0.3 seconds, and uses range-based native dispatch with a fallback for dynamic code in IWRAM or EWRAM. Automatic control-flow discovery also supports ROM hacks and translation hooks, and passing `--emit-cpp <dir>` exports readable C++ translation units if you want to inspect the output.

## Features and how to run it

The generated executable runs on Direct3D 11 with 3:2 Fit, Integer Pixel-Perfect, and Stretch aspect modes, nearest or linear filtering, VSync, and an optional FPS and recompiler telemetry overlay. Audio emulates GBA Direct Sound FIFO A/B locked to 280,896 cycles per frame with Dynamic Rate Control and a low-pass DAC filter. Saves write automatically to `<executable_name>.sav` alongside a `recomp_config.ini` file.

1. Grab `recomp-ariaofsorrow.exe` from the project releases or build it on Windows x64 with CMake 3.20+, Ninja, and LLVM/Clang 20+ (with `#embed` support and Windows SDK / MSVC CRT).
2. Run `.\recomp-ariaofsorrow.exe "Castlevania - Aria of Sorrow.gba" -o "AriaOfSorrow_Recomp.exe"` in PowerShell.
3. Launch the resulting `.exe` and press `F10` or `R3` on a controller to open the Dear ImGui menu for XInput and keyboard rebinding, English, Portuguese, or Spanish UI selection, and hotkeys (`F5` quick save, `F7` quick load, `F8` reset, `F11` fullscreen).

Most static recompilation projects force end users through multi-gigabyte compiler toolchains before a single frame renders. Shipping an embedded x86_64 emitter that compiles a GBA ROM in a third of a second reduces setup to a single CLI command, though the project is at v0.0.1 and currently targets Windows x86_64 only.
