Hi everyone, There are tools to convert machine code to an assembly language. Is there any similar tool to convert X86 machine code to LLVM IR? thanks in advance -- View this message in context: http://old.nabble.com/Converting-Machine-code-to-LLVM-IR-tp29294146p29294146.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
On Jul 29, 2010, at 1:23 AM, subramanyam wrote:> Hi everyone, > > There are tools to convert machine code to an assembly language. > Is there any similar tool to convert X86 machine code to LLVM IR?No, sorry. While it wouldn't be impossible to write one, it would be a fairly complex transformation — as complex as a proper decompiler if it made any effort to create reasonable IR. John.
subramanyam wrote:> Hi everyone, > > There are tools to convert machine code to an assembly language. > Is there any similar tool to convert X86 machine code to LLVM IR? > > thanks in advance >There was a Google Summer of Code Project to get Xemu to use LLVM IR. IIRC, it had pre-constructed IR for each native code instruction that could be stitched together when performing native code to LLVM IR translation. I don't know where to find this project or what came of it. You can try searching the LLVM web page for a link to it or searching the llvmdev archives. -- John T.