matt-kempster / m2c

A MIPS and PowerPC decompiler.
GNU General Public License v3.0
396 stars 48 forks source link

Pattern-match function body for matching macros #56

Open matt-kempster opened 4 years ago

matt-kempster commented 4 years ago

In if_statements.py, when we have a Body, we should look for sequences of statements that match input macros (akin to how we match types given an input preprocessed C file).

dbalatoni13 commented 4 months ago

This would be great. It would also be nice if we could recognize inlined functions.

simonlindholm commented 4 months ago

I think recognizing inlined functions would be extremely hard. I know of no other decompiler that does it, despite it being a major pain point when doing reverse engineering and a potential huge selling point. It would be an interesting research project, but I wouldn't put any hope in it ever happening!