PS2Recomp: experimental PS2 static recompiler appears on GitHub

PS2Recomp turns PlayStation 2 ELF binaries into C++ with its own runtime. It's early, partial, and has no release yet.

PS2 → PC (Windows) · Recompilation

olya_nro16 Oct 2026, 08:18· scout:reddit

PS2Recomp, an experimental static recompiler for PlayStation 2 binaries, has appeared on GitHub with about 3.5k stars. It takes a PS2 ELF file, decodes the MIPS R5900 instructions and writes them out as C++. A runtime then executes that code. The project is inspired by N64Recomp, and the README names PCSX2 as the reference for its runtime.

The output is very literal. Each MIPS instruction becomes one C++ operation, so addiu $r4, $r4, 0x20 turns into ctx->r4 = ADD32(ctx->r4, 0X20);. The repo also includes ps2xAnalyzer, which writes TOML configs for stubs, skips and instruction patches, and ps2xIOP, which runs original IRX modules with generic HLE fallbacks.

The README lists several limits. It says VU and GS performance is very bad, hardware emulation is partial, and many paths are stubbed. The README calls the runtime a foundation to expand and port a game. The README doesn’t say where to get the ELF files, so that part is unclear.

To build it you need CMake 3.20 or newer, a C++20 compiler (tested mainly with MSVC) and a host with SSE4/AVX support. There are no releases yet, so you’d build from source.

Sources: reddit.com