PS2Recomp is a static recompiler for PlayStation 2 that translates machine instructions from executable binaries into source code to enable execution on modern hardware. It functions as a binary-to-source translator and a binary analysis tool designed to facilitate the preservation of legacy software.
The project distinguishes itself through a hardware emulation runtime that manages memory models and register contexts, combined with a static binary patcher for replacing raw instructions and overriding function bindings. It utilizes a specialized vector unit instruction execution system that maps wide-bit macro mode instructions to hardware-accelerated intrinsics for mathematical operations.
The system encompasses broad capabilities for binary reverse engineering, including function symbol recovery, library stub detection, and the identification of function boundaries via heuristic jump scanning or external symbol databases. It also provides tools for risky instruction flagging and the implementation of custom system calls to extend or override internal function behavior.