Skip to content

Recompiler‐Pipeline

NotY215 edited this page Nov 30, 2026 · 1 revision

PPSX33 Recompiler Pipeline

Overview

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.

Pipeline Diagram

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]
Loading

1. ELF Loading

The loader processes supported ELF64 big-endian PowerPC64 files.

It identifies loadable segments and relevant executable metadata.

2. ELF Analysis

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.

3. PPU Decoding

The PPU decoder identifies PowerPC instruction encodings.

Instruction recognition and instruction correctness are separate concerns.

4. Static Lifting

Recognized instructions are converted into generated native code.

The generated code represents the translated guest execution paths.

5. Project Generation

PPSX33 organizes the generated code and runtime dependencies into a Windows build project.

6. Native Compilation

The Microsoft C++ toolchain compiles and links the project.

The output includes a game-specific executable.

7. Runtime Initialization

The generated executable initializes ps3rt.dll.

The runtime provides guest memory, CPU execution helpers and required HLE services.

8. Guest Execution

The runtime coordinates the available processor, system-service and graphics paths.

Output Artifacts

Artifact Description
GameName.exe Native Windows executable
ps3rt.dll Unified runtime
guest_image.bin Guest memory image
Reports Analysis and lifting information

Important Distinctions

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.

Clone this wiki locally