decompdecomp

Free and open source · runs on your computer

Agents decompile your game.

Open a game you own in the app and start helper agents. They write C or C++, one function at a time. The game's original compiler builds each attempt, and only identical bytes count.

Will it work on my game?

Pick the console. See what happens to your file.

Nintendo 64 Recommended

  1. Your fileROM.z64, .n64 or .v64
  2. Split bysplatwith spimdisasm; finds code loaded later, and compressed code
  3. Built byKMC GCC 2.7.2or IDO 5.3 / 7.1, the game's own compiler; another build from your own copy
  4. Judged byLinkingat the function's real address, compared byte for byte
  5. You getA rebuildable projectthat builds your ROM again, byte for byte

GameCube Beta

  1. Your fileDisc or DOLISO, GCM, RVZ, WIA, CISO, GCZ
  2. Split bydecomp-toolkitin a dtk-template project
  3. Built byCodeWarriorGC 1.0 to 3.0, C and C++
  4. Judged byobjdiffin the project's own build; finished files are linked into the game
  5. You getA dtk-template projectthe shape community decomps use

Wii Beta

  1. Your fileDisc or DOLISO, RVZ, WIA, WBFS, CISO
  2. Split bydecomp-toolkitin a dtk-template project
  3. Built byCodeWarriorup to Wii 1.7, C and C++
  4. Judged byobjdiffin the project's own build; finished files are linked into the game
  5. You getA dtk-template projectthe shape community decomps use

PlayStation Beta

  1. Your fileDisc or PS-X EXEBIN, ISO or CHD; the game's main program and its overlays
  2. Split bysplatwith spimdisasm
  3. Built byPSY-Q's GCC2.5.7 to 2.95.2, EGCS 2.91.66 included, through maspsx for Sony's assembler; another build from your own copy; C
  4. Judged byLinkingat the function's real address, compared byte for byte
  5. You getA rebuildable projectthat builds the program again, byte for byte

PlayStation 2 Beta

  1. Your fileDisc or ELFthe game's main program
  2. Split bysplatwith spimdisasm
  3. Built byEE-GCC or CodeWarriorEE-GCC 2.9 to 3.2 (Sony builds use the local Linux runner on Mac), CodeWarrior 2.3.3 / 3.0.1 (also on Mac through wibo with license acceptance); C and C++; one compiler per address range when a game mixes them; another build from your own copy
  4. Judged byLinkingat the function's real address, compared byte for byte
  5. You getA rebuildable projectthat builds the program again, byte for byte

PlayStation 3 Beta

  1. Your fileThe program, decryptedEBOOT.ELF from your own copy; decompdecomp never decrypts
  2. Split bydecompdecompthe program's own function list first, then its calls; imports named
  3. Built byGCCthe free ps3dev GCC, or your own SDK's compiler; C and C++
  4. Judged byLinkingat the function's real address, every reference checked
  5. You getA project of your game's functionsas C sources

PlayStation 4 Beta

  1. Your fileThe program, decryptedyour own eboot.elf; no encrypted SELF, PKG or PRX modules
  2. Split byGhidra or a function mapdrop a functions.jsonl map with the program, or let Ghidra find its functions
  3. Built byPublic Clang 5.0.2free, pinned compiler; Linux x86-64 app only, including inside WSL 2; verify the compiler and flags for your game
  4. Judged byobjdiffbeta: strict comparison tested on leaf functions and same-file, cross-file and import calls
  5. You getA project of your game's functionswhole-game relinking and export remain planned; shared features await PS4 validation

PSP Beta

  1. Your fileUMD image, ELF or PRXan ISO whose program isn't encrypted, or the game's program decrypted (PPSSPP can dump it); its debug symbols, when it has them
  2. Split bysplatwith spimdisasm; a PRX is first placed where the PSP loads it
  3. Built byCodeWarrior or Sony's GCCCodeWarrior for PSP 3.0.1, the PSP SDK's GCC 3.3.3, SN's pspsnc; another build from your own copy; C and C++
  4. Judged byLinkingat the function's real address, compared byte for byte
  5. You getA rebuildable projectthat builds the program again, byte for byte

Windows PC Beta

  1. Your filePrograma 32-bit or 64-bit .exe
  2. Split byGhidrathen decompdecomp cuts each function out of the .exe (a 64-bit one's are in its own list, .pdata)
  3. Built byVisual C++6.0 to 2010, or 2017 (through wine on Linux and macOS; a 64-bit game builds with its 64-bit compiler); any other, from your own copy (x86 and x64 compilers recognised); C and C++
  4. Judged byobjdiffper function
  5. You getA project of your game's functionsas C and C++ sources

Xbox Beta

  1. Your fileProgram or discdefault.xbe, an .xiso or a Redump .iso
  2. Split byGhidraafter decompdecomp makes the XBE a Windows program at the same addresses
  3. Built byVisual C++ 7.0 / 7.1the XDK's compilers; your own XDK optional on Linux and macOS, needed on Windows for 7.1 games; C and C++
  4. Judged byobjdiffper function
  5. You getA project of your game's functionsas C and C++ sources

Nintendo DS Beta

  1. Your fileROM.nds
  2. Split byds-decompthe ARM9 program, its ITCM and DTCM, every overlay
  3. Built byCodeWarrior for DS1.2 to DSi 1.6, each source file with its own version
  4. Judged byobjdiffper function
  5. You getA ds-decomp projectthat rebuilds your ROM and checks it, byte for byte

Game Boy Advance Beta

  1. Your fileROM.gba
  2. Split byluvdisplus decompdecomp's own function finder, for Thumb and ARM
  3. Built byagbccthe community's free GCC-based compiler (GPL), or your own build; C
  4. Judged byLinkingat the function's real address, compared byte for byte
  5. You getA rebuildable projectthat builds your ROM again, byte for byte

1.0.3 rewrote most of the app, so every platform needs testing again. Try it on a game you own and tell us how it went.

Proprietary compilers (IDO, CodeWarrior, SN Systems, Visual C++) install only after you accept them in Setup. Also: 3DS, Switch and Xbox 360, through a fork of a community decomp repository.

How it's checked

The game's compiler is the judge. Not the AI.

Each attempt is compiled with the same compiler and flags the game was built with, linked at the function's real address, and compared with your copy. A near miss comes back with an instruction diff. Only score 0 is a match.

From your ROM 0x800007D0

slt     $v0, $a0, $a1
bnez    $v0, .L800007EC
 addu   $v0, $a1, $zero
addu    $v0, $a2, $zero
slt     $v1, $v0, $a0
beql    $v1, $zero, .L800007EC
 addu   $v0, $a0, $zero
.L800007EC:
jr      $ra
 nop

From the agent clamp_s32.c

s32 clamp_s32(s32 v, s32 lo, s32 hi) {
    if (v < lo) {
        return lo;
    }
    if (v > hi) {
        return hi;
    }
    return v;
}

score 0 36 of 36 bytes identical, built with KMC GCC 2.7.2 -O2

Yours.

  1. Your game stays on your computer. No account, no telemetry, nothing uploaded. decompdecomp supplies no games.
  2. Your agents do the work: any model with an API key, Claude Code, Codex, Cursor Agent, Kimi Code, opencode, Antigravity CLI, ZCode CLI or Oh My Pi. The app starts them and restarts them. You pay your own provider.
  3. Your code comes out as a project that builds your game again, byte for byte: the start of a port or a mod.

The code from a game belongs to its rights holder. Keep it to yourself.

Start.

1 · Install

curl -fsSL https://decomp.ndelic.com/install.sh | bash

Linux: run it in your terminal. It installs the app and compilers, then opens the app in its own window. There's also a .deb, an .rpm and an AppImage on the releases page.

Windows 10 and 11: download and open decompdecomp-<version>-windows-x64-setup.exe from the latest release. The app opens in a native Windows window, with desktop and Start shortcuts and a tray icon. PS1, PS2 and most N64 games also need WSL 2 for their period compilers: run wsl --install in an administrator PowerShell, restart if asked, then open Ubuntu once. GameCube, Wii, DS and Windows PC games, and N64 games built with IDO, don't.

For a portable copy, extract the windows-x64-portable.zip download from the same release and open decompdecomp.exe, keeping its bundled folders beside it. It needs .NET Framework 4.8 and Microsoft Edge WebView2 Runtime already installed; setup installs them when they are missing.

PS4 support needs the Linux x86-64 app and its free Clang 5.0.2 pack. On Windows, install and run the Linux app inside WSL 2; the native Windows and macOS apps cannot build PS4 projects.

curl -fsSL https://decomp.ndelic.com/install.sh | bash -s -- --source branch:main

macOS 12+ on Intel and Apple Silicon: installs the current source and a Finder app in ~/Applications. Apple Silicon needs Rosetta for the Intel N64 KMC compiler and binutils. PS2 Sony EE-GCC uses the optional local Linux runner on macOS 13+: install brew install colima docker, then choose Prepare Linux runner in Compilers & tools. SN Systems EE-GCC and CodeWarrior PS2 use wibo; CodeWarrior requires license acceptance in Setup. Linux-only PS1 builds still need Linux; macOS has no menu bar tray icon yet.

There's also a downloadable macOS app on the latest release: download macos_arm64 for Apple Silicon or macos_x86_64 for Intel, unzip it, move decompdecomp.app to Applications, and open it from Finder. It isn't signed, so macOS may ask you to approve its first launch in Privacy & Security.

2 · Open your game

Pick your own copy of the game in the app, then click Start agents: any model with an API key, Claude Code, Codex, Cursor Agent, Kimi Code, opencode, Antigravity CLI, ZCode CLI or Oh My Pi. Run several: they work on different functions at the same time. Or open Demo Quest 64 and watch first.

Continuing a public N64 or PlayStation Splat decomp? For supported simple splits, decompdecomp can create missing objdiff references after checking them byte for byte against your copy.