Skip to content

About

Original C exercises for practising matching decompilation on x86, MIPS and PowerPC

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decomp-practice

Original small C programs (written for this repo — no game code) for practising matching decompilation: write C that compiles to exactly the same machine code as a given object file.

  • src/ — originals: math_ops.c, state_machine.c, structs.c
  • make — builds each for x86_64, MIPS (mips-linux-gnu-gcc -O2) and PowerPC into build/
  • make exercises — regenerates exercises/<name>/{target_mips.o,solutions/}
  • ./check.sh exercises/<name> [attempt.c] — objdump diff of your attempt vs the target

Requires: make, gcc, gcc-mips-linux-gnu, gcc-powerpc-linux-gnu. MIT licensed.

About

Original C exercises for practising matching decompilation on x86, MIPS and PowerPC

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages