Evidence at a glance
Based on the linked sources. The author's reported result and independent confirmation are separate checks.
- AI involvement
- Reported models: Claude. Tools: CMake, Ninja, SDL2, SameBoy. The writeup below describes the work attributed to AI.
- Reported result
- Research. This is the directory's source-based outcome classification.
- Independent confirmation
- Not reported.
- Human work and limitations
- The project is an experimental recompiler. It is not a complete emulator and relies on static analysis which may fall back to an interpreter. The project explicitly states that successful code generation does not guarantee correct execution for every scene.
Original sources
What was done
GB Recompiled is an experimental tool that analyzes LR35902 code to generate portable C projects from Game Boy and Game Boy Color ROMs. It includes a shared SDL2 runtime and supports features like native function replacement and deterministic data modifications.
GB Recompiled is an experimental project that transforms Game Boy and Game Boy Color ROMs into portable C projects. The tool performs static analysis on LR35902 code, emitting C source code and metadata that links against a shared SDL2 runtime for hardware emulation, including video, audio, input, and persistence. The project provides an opt-in SDK for native function replacement and semantic data access, exemplified by the included Pokémon Crystal flagship port. The developer notes that this is not a whole-catalogue compatibility claim; hardware accuracy and game coverage remain active areas of development. The project includes diagnostic tools such as differential, replay, and frame/audio capture to support verification. While the source-only alpha is verified end-to-end on macOS arm64, other platforms are considered best-effort. Repository tests cover isolated invariants, while external suites and SameBoy comparisons provide additional validation layers. The project maintains documentation on accuracy, GBC status, and a backlog of remaining work. Development is tracked via GitHub, with recent commits addressing safepoint checks, mapper state handling, and runtime I/O behavior.
Sources: Source 1
Reproduce it
Install CMake 3.20+, Ninja, SDL2, and a C11/C++20 compiler. Clone the repository, run 'cmake -G Ninja -B build .', then 'ninja -C build'. Generate a project with './build/bin/gbrecomp path/to/game.gb -o output/game', then build the generated project using CMake and Ninja.