gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Decompiler

#150165 - mojobojo - Wed Jan 30, 2008 8:24 pm

Dose anyone know of a gba, gbc, gb file decompiler. When I make game I like to look at comercial games (to see what makes them tick) and make my own games based on the source code.

#150182 - Dwedit - Wed Jan 30, 2008 10:16 pm

Full decompilers to a high level language (such as decompiling machine code to C) are not feasible.
However, you can use a disassembler to see what ASM code is executed. It can not recover symbol names, so you only have memory addresses to go by.
Some emulators have a Debugger feature to let you step through the disassembled ASM code, and set breakpoints.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#150208 - bpoint - Thu Jan 31, 2008 7:11 am

Dwedit wrote:
Full decompilers to a high level language (such as decompiling machine code to C) are not feasible.

This is not exactly true -- you should look at Boomerang.

However, AFAIK, Boomerang only currently supports x86 CPU-based executables, not GBA/ARM like the OP is looking for. :)

#150230 - Kyoufu Kawa - Thu Jan 31, 2008 8:34 pm

Same thing with HexRays, a plugin for IDA. IDA can dissemble most any platform's binaries, but HexRays only works for x86. Still interesting though.