cd /news/ai-tools/gb-recompiled-gb-recompiled · home › topics › ai-tools › article
[ARTICLE · art-156010] src=reversedwithai.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

GB Recompiled: GB Recompiled

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.

by read2 min views1 publishedOct 23, 2026
GB Recompiled: GB Recompiled
Image: Reversedwithai (auto-discovered)

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.
── more in #ai-tools 4 stories · sorted by recency
── more on @gb recompiled 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/gb-recompiled-gb-rec…] indexed:0 read:2min 2026-10-23 · —