{"slug": "gb-recompiled-gb-recompiled", "title": "GB Recompiled: GB Recompiled", "summary": "An experimental project called GB Recompiled performs static analysis on LR35902 code to generate portable C projects from Game Boy and Game Boy Color ROMs, linking the output against a shared SDL2 runtime for video, audio, input and persistence. The project, developed by arcanite24 on GitHub, includes an opt-in SDK for native function replacement and semantic data access, demonstrated by a Pokémon Crystal flagship port, and ships diagnostic tools for differential, replay and frame/audio capture verification. The source-only alpha is verified end-to-end only on macOS arm64, with other platforms best-effort, and the developer states that successful code generation does not guarantee correct execution for every scene and that hardware accuracy and game coverage remain active areas of development.", "body_md": "## Evidence at a glance\n\nBased on the linked sources. The author's reported result and independent confirmation are separate checks.\n\n- AI involvement\n- Reported models: Claude. Tools: CMake, Ninja, SDL2, SameBoy. The writeup below describes the work attributed to AI.\n- Reported result\n- Research. This is the directory's source-based outcome classification.\n- Independent confirmation\n- Not reported.\n- Human work and limitations\n- 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.\n\n### Original sources\n\n## What was done\n\nGB 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.\n\nGB 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.\n\nSources: [Source 1](https://raw.githubusercontent.com/arcanite24/gb-recompiled/HEAD/README.md)\n\n## Reproduce it\n\n```\nInstall 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.\n```\n\n", "url": "https://wpnews.pro/news/gb-recompiled-gb-recompiled", "canonical_source": "https://reversedwithai.com/p/gb-recompiled-5749a4da", "published_at": "2026-10-23 10:35:52+00:00", "updated_at": "2026-10-23 10:40:21.652807+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["GB Recompiled", "arcanite24", "GitHub", "LR35902", "SDL2", "SameBoy", "Pokémon Crystal", "CMake"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/gb-recompiled-gb-recompiled", "markdown": "https://wpnews.pro/news/gb-recompiled-gb-recompiled.md", "text": "https://wpnews.pro/news/gb-recompiled-gb-recompiled.txt", "jsonld": "https://wpnews.pro/news/gb-recompiled-gb-recompiled.jsonld"}}