Gran Turismo 4 (PS2) · Partial · Source available

Matched 98% of Gran Turismo 4's functions to the original PS2 compiler, using Claude

Can I play it?
Partial
Original game
PlayStation 2
Runs on
Linux
You need
Your own copy of the game. I never link game files.
What it is
Matching decompilation
View JSON
Gran Turismo 4 (PS2): A PS2 racing engine matched function by function.
Image: GitHub (gustavocanepa/gt4-decomp)

Who did what

639 of 808 commits credit an AI: 472 Claude Opus 5.5, 167 Claude Sonnet 5.5. They were made on 36 separate days between 6 Oct 2026 and 16 Nov 2026.

Counted from the public git history on 16 Nov 2026. How

What was done

Gustavo Canepa runs Claude agents against objdiff and a link check to match PS2 Gran Turismo 4 functions byte for byte, and reuses the work for Tourist Trophy and Gran Turismo 3.

Gustavo Canepa is rebuilding the engine of Gran Turismo 4 (PS2) as C++ that the original compiler turns into the same instructions as the game, with Claude agents doing most of the matching. The README's progress block for November 2026 reports 30,245 of 30,875 functions matching (98.0 percent, 98.0%), 89.6 percent of the code bytes, with 87.4 percent of the sources clean, meaning free of decompiler macros and raw casts. The full build still reproduces the original executable by SHA-1. The repository holds no game data.

He first identified the compiler, Sony's ee-gcc 2.96 at -O2. A pilot matched 13 of 20 random functions by hand. After that, Claude agents drive the project's tools, and every match is checked by the compiler and a judge script, not by eye. About 14% of functions are exact copies of another, so one match settles a group. The same tools were reused for Tourist Trophy and Gran Turismo 3. The separate GT4 Native project is experimental and not playable.

You need your own copy of the game (NTSC-U, SCUS-97328 v1.01), Python 3.11 or newer with rabbitizer, and Linux or WSL (Ubuntu). Place your disc image as orig/README.md describes, run tools/setup_linux.sh and tools/splat.sh, build the function list with tools/find_functions.py, then python tools/build.py. SETUP.md walks through a fresh machine.

Sources:

  • https://github.com/gustavocanepa/gt4-decomp

Questions about Gran Turismo 4 (PS2)

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 15 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week