To decompile RE4, agents rebuilt 1999 GCC and modeled CodeWarrior's register allocator
adonis_singh · x · 2026-09-15
The author details how the Fable agents fully decompiled Resident Evil 4:
- Agents spent most time on compilers. To get the last few hundred functions byte-identical, Fable spawned subagents to rebuild SN's 1999 GCC from source with debug hooks in its register allocator, and wrote a working model of CodeWarrior's register allocator.
- The author says he doesn't understand any of it — he gave the single goal of fully decompiling RE4 and let the agent prompt itself and its subagents for days until satisfied.
- Inspiration: the Melee decomp hit 100% after six years of work by dozens of people. RE4 is on the same console with a similar compiler and more than twice the size, though its debug disc names every function, making it an easier target.
Related event: AI Agent Fully Decompiles Resident Evil 4 in Under a Week(4 posts)→
More from coding & agent
- awa-video-reel: free Claude Code skill auto-edits shorts and records website B-roll — TawohAwa · 2026-11-02
- Econ PhD Job Market Database Hits 900+ Candidates, Open to Codex and Claude Code — aniketapanjwani · 2026-11-02
- Cron works by hand, fails on schedule: a 7-point debugging checklist — petrusenko_max · 2026-11-02
- Local quants vs Claude on 9 real private bugs: 3-bit costs thinking time, not score — FeydRowan · 2026-11-02
- Build products for AI, not humans: MCP lets Claude Code run everything — gefei55 · 2026-11-02
- Solo dev launches hosted MCP server with 31 tools scheduling to 20+ social networks — troyizzle · 2026-11-02