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 Into C in Under a Week(3 posts)→
More from coding & agent
- Pick one coding agent harness, learn it deeply, and stop switching tools — iannuttall · 2026-09-15
- Hypothesis creator hiring London engineers for Hegel, open-source property-based testing — xuanalogue · 2026-09-15
- Adaption AI launches Invent API: training datasets from a prompt, no strings attached — sarahookr · 2026-09-15
- How to chain Parker and Higgsfield MCPs into a repeatable skill that mass-produces BFCM ad statics — alexgoughcooper · 2026-09-15
- Do Codex and Claude Code auto-approve features actually keep you safe? A researcher says the trust model is broken — Aaroth · 2026-09-15
- AgentSTAR uses agents for articulated object tracking; Malik hails end of "grad student descent" — CSProfKGD · 2026-09-15