Repository navigation
Recompiler‐Pipeline
PPSX33 converts supported PlayStation 3 executable code into native Windows executable output.
The pipeline consists of analysis, instruction lifting, code generation, compilation and runtime initialization.
flowchart TD
A[Decrypted ELF64] --> B[ELF Loader]
B --> C[ELF Analysis]
C --> D[PPU Decoder]
D --> E[Static Lifter]
E --> F[Generated C++]
F --> G[Project Generation]
G --> H[MSVC Compiler]
H --> I[Native Windows EXE]
I --> J[ps3rt.dll]
J --> K[Runtime Initialization]
K --> L[Guest Execution]
The loader processes supported ELF64 big-endian PowerPC64 files.
It identifies loadable segments and relevant executable metadata.
The analysis stage collects information that helps the recompiler understand the executable.
Examples include:
- Entry points
- Symbols
- OPD/function descriptors
- PRX/module string references
- Embedded SPU images
Some discoveries are heuristic and must not be interpreted as confirmed runtime resolution.
The PPU decoder identifies PowerPC instruction encodings.
Instruction recognition and instruction correctness are separate concerns.
Recognized instructions are converted into generated native code.
The generated code represents the translated guest execution paths.
PPSX33 organizes the generated code and runtime dependencies into a Windows build project.
The Microsoft C++ toolchain compiles and links the project.
The output includes a game-specific executable.
The generated executable initializes ps3rt.dll.
The runtime provides guest memory, CPU execution helpers and required HLE services.
The runtime coordinates the available processor, system-service and graphics paths.
| Artifact | Description |
|---|---|
| GameName.exe | Native Windows executable |
| ps3rt.dll | Unified runtime |
| guest_image.bin | Guest memory image |
| Reports | Analysis and lifting information |
PPSX33 tracks multiple correctness levels.
| Level | Meaning |
|---|---|
| Decode | Instruction encoding recognized |
| Translation | Native code emitted |
| Semantics | Behaviour matches guest architecture |
| Runtime | Generated code executes correctly |
| Compatibility | Game operates correctly end to end |
A 100% translation report is not a 100% compatibility rating.