uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.17k stars 253 forks source link

Save decompiled code #744

Open Cairn23 opened 5 years ago

Cairn23 commented 5 years ago

Add a function to save the code as a source code file

uxmal commented 5 years ago

I'm not sure exactly what you mean with "the code" above. Are you referring to the generated C code? If so, it is generated in a file. If you decompile foo.exe, Reko will generate foo.c, foo.h, and foo.globals.c. I been wanting to improve that for a long time. Look at issues #73 and #74, perhaps they are of interest to you?

Cairn23 commented 5 years ago

The saving of the foo.c etc should only be done as a user requests it, other wise if a user updates a function name will it get updated in the generated code, therefore the generation of the file should be controlled with a user request to save.