{"slug": "sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure", "title": "Sonic Adventure (Japanese release, HDR-0001, version 1.007): Japanese Sonic Adventure: Claude/Codex-assisted Dreamcast matching decompilation and GCC port", "summary": "A project called sonic-adventure has produced a 100% byte-matching decompilation of the Japanese Dreamcast release of Sonic Adventure (HDR-0001, version 1.007), with roughly 1 million lines of C written using Claude Code and Codex, according to the project's README. The matching build verifies every binary against the original disc files using Hitachi's SHC 5.0 compiler run via wibo on Linux, and the project adds a GCC 16.2 port incorporating Falco Girgis's sh4zam SH-4 math library that enables 16:9 widescreen, 60 fps, a frame counter, and movie and cutscene skips. The GCC port gives the game an alternative build path on modern toolchains, with builds run via 'make' or 'make gcc' on x86-64 Linux with GNU make 4.3 and Python 3.8.", "body_md": "## Evidence at a glance\n\nLoading source evidence…\n\n## What was done\n\nThe project provides a 100% byte-matching decompilation of the Japanese Dreamcast release of Sonic Adventure. It includes a port to GCC 16.2, enabling features like 16:9 aspect ratio and 60 fps, developed using Claude Code and Codex.\n\nThe project [sonic-adventure](https://raw.githubusercontent.com/reshaped/sonic-adventure/HEAD/README.md) is a complete matching decompilation of the Japanese retail release of Sonic Adventure (HDR-0001, version 1.007). The author reports that 100% of the game's code builds from source, byte for byte, matching the original binaries. The codebase consists of approximately 1 million lines of C, which the author states were written using Claude Code and Codex. The build process requires the original disc data and utilizes Hitachi's SHC 5.0 compiler, run via wibo on Linux. Additionally, the project includes a port to GCC 16.2, which allows the game to compile under a modern toolchain. This GCC port incorporates the sh4zam library by Falco Girgis for hand-optimized SH-4 math routines and introduces features such as 16:9 widescreen support, 60 fps, a frame counter, and skips for movies and cutscenes. The matching build process verifies every binary against the original disc files, while the GCC port provides an alternative build path for modern systems.\n\n## From the source\n\n## Reproduce it\n\nEnsure the Japanese release of Sonic Adventure (HDR-0001, version 1.007) is available. Place the disc files (1ST_READ.BIN, LOADER.BIN, and SONICADV/) in the orig/ directory. Run 'make' to perform the matching build or 'make gcc' to build the GCC port on an x86-64 Linux system with GNU make 4.3 and Python 3.8 installed.\n\n## Community\n\nAsk a question, share what worked, or follow the next milestone.\n\n[Your library](https://reversedwithai.com/library)", "url": "https://wpnews.pro/news/sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure", "canonical_source": "https://reversedwithai.com/p/sonic-adventure-japanese-release-hdr-0001-version-b6e7578d", "published_at": "2026-11-01 09:31:02+00:00", "updated_at": "2026-11-05 12:21:44.868634+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools", "developer-tools"], "entities": ["Sonic Adventure", "Sega", "Claude Code", "Codex", "Hitachi SHC 5.0", "GCC 16.2", "sh4zam", "Falco Girgis"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure", "markdown": "https://wpnews.pro/news/sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure.md", "text": "https://wpnews.pro/news/sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure.txt", "jsonld": "https://wpnews.pro/news/sonic-adventure-japanese-release-hdr-0001-version-1-007-japanese-sonic-adventure.jsonld"}}