Skip to content

Navigation Menu

Sign in
Sign up

Adding a ASM to C code generator #60

Unanswered
goofyseeker311 asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 2 comments

Comment options

whats the issue not being able to save the code, some copyright fear issue?

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #59 on March 24, 2023 11:03.

AltStyle によって変換されたページ (->オリジナル) /