PS2Recomp
A PlayStation 2 static recompiler that translates ELF binaries into C++ code with a supporting runtime.
Updated · 7 projects
About PS2Recomp
PS2Recomp is an experimental toolset designed to statically recompile PlayStation 2 ELF binaries into C++ code. The project consists of several modules: `ps2xAnalyzer` for scanning binaries and generating configuration, `ps2xRecomp` for decoding MIPS R5900 instructions and generating C++ output, and `ps2xRuntime`, which provides the execution environment including memory management and hardware stubs. It also includes `ps2xIOP` for R3000A IRX execution via a virtual kernel. The tool translates MIPS instructions into literal C++ operations (e.g., mapping `addiu` to a C++ addition macro) and supports PS2-specific Multimedia Extensions (MMI) and VU0 macros. It handles system calls through a runtime dispatcher and allows for manual address binding or Ghidra-integrated workflows to handle stripped binaries. Development has utilized AI assistance for specific code contributions and bug fixes.
Summarised from the official page linked above.
Projects using PS2Recomp
Share the writeup or repo, and what the AI got right and wrong.




