[LLVMdev] disassembly/decompiling

Chris Lattner clattner at apple.com
Mon Oct 26 20:31:45 PDT 2009


On Oct 26, 2009, at 7:39 PM, Howard Chu wrote:

>> We don't have anything like that planned, but do plan to do an
>> assembler and disassembler.  The disassembler (for x86-16/32/64) is
>> iterating on review comments before it goes in.  The assembler is
>> currently being built out and will initially support macho.
>> Translating X86-32 to X86-64 sounds tricky but it could probably be
>> built on some of this infrastructure.
>
> Thanks for the response. I guess the real question is how much  
> functionality the disassembler will have. If it only disassembles to  
> assembly source files that's one thing. If it can go all the way to  
> the LLVM IR that should make going to anything else pretty trivial.

It will disassembler encoded instruction bytes (CD 21) into an MCInst  
which can then be printed to a string "int $21".

-Chris



More information about the llvm-dev mailing list