[LLVMdev] simple way to print disassembly of final code from jit?

Bill O'Hara billtohara at gmail.com
Tue Jul 6 15:07:52 PDT 2010


Hi,

With the new llvm-mc code for disassembling, what is the recommended
way to disassemble the final code produced by a JIT compiler backend?
(Eg. in the toy.cpp example from the tutorial).

I can get the void* for the final code, but I don't know its length -
superficially at least it appears I need to know the length to
disassemble it as a buffer?

Thanks
b.



More information about the llvm-dev mailing list