Skip to content
joelpx edited this page Mar 5, 2016 · 14 revisions

Add a support for a new architecture

Work in progress...

Specific files for an architecture are in the folder reverse/lib/arch/<NAME>. Four files are mandatory to add a new architecture :

  • output.py : this is the implementation of the abstract class reverse.lib.output.
  • utils.py : it defines some functions to detect jump/return/call/compare instructions and how instruction symbols must be printed (example add for x86 is "+=").
  • process_ast.py : you can define functions to modify the ast after a decompilation.
  • __init__.py : it contains the list of all functions defined in process_ast.py.

Clone this wiki locally