Adding a ASM to C code generator #60
so, when you have the full (say x86) assembler code, it would not be very hard to convert that to the simples working (compiling) standard form of c-code (say cross-platform basic code), anyone having interest to add that part?
All reactions
Replies: 2 comments
whats the issue not being able to save the code, some copyright fear issue?
All reactions
It's very architecture specific.
In my understanding you need to convert an instruction set to an intermediate (simplified) representation like RDIL: https://github.com/REDasmOrg/REDasm-Library/blob/6e98b5509e9859f81ee3371460064a07fc85282b/rdapi/rdil.h
From there you can recognize branches, calls, assignments, etc and write the corresponding code in a specific language.
In some very rare cases (or very simple programs) it's working code, otherwise is just a fancy pseudocode.