[LLVMdev] help decompiling x86 ASM to LLVM IR
Óscar Fuentes
ofv at wanadoo.es
Tue Mar 12 10:25:10 PDT 2013
John Criswell <criswell at illinois.edu> writes:
> This is a bad example. A compiler compiling LP64 code would generate
> the above code on x86_64 for the given C code. An ILP32 compiler for
> x86_64 would generate something more akin to the 32-bit x86_32 code
> given above. It should be possible to statically convert such a simple
> program from one instruction set to another (provided that they're not
> funky instruction sets with 11 bit words).
"such a simple program" can't be converted without looking at the
original C code (or some representation that retains the relevant info.)
Please see my other response to the OP.
Apart from that, you need to figure out the big picture starting from
the "simple program." That's what examples are for :-)
[snip]
More information about the llvm-dev
mailing list