Is it possible to produce recompilable
C code using IDA pro?
What I mean:
I can export binary into
C pseudocode using "produce file" feature. But, the code is not recompilable. First,
defs.h file is not present (I don't know if this comes with my ida pro license). I assume this file has all the typedefs, etc. I can use something like defs.h. Then I can fix definitions by removing or replacing "__fastcall" and "__noreturn" (I just added
#define __fastcall to ignore this) (I don't if any other replacements required). And remove functions like
_gmon_start__, etc. Then I can include required libraries.
Is there a way to all automate this (or is there an elegant way to do this)?