[LLVMdev] jump table ?

Ralph Corderoy ralph at inputplus.co.uk
Thu Jun 29 02:36:23 PDT 2006


Hi Simon,

> So if i'm using the JIT then it will generate a switch table ?  How
> can i test this, since i've been examining the native assembly output
> (is this 'pic' mode?) of llc.

Presumably the JIT means you end up with a `function pointer' that you
call to execute the just built code?  Can't you just save a lump of
memory starting at that address to a file and then run objdump(1) on it
to see what native instructions were generated?

objdump's -i option will show you the available file formats, one's
normally `binary' or something similar.

Cheers,


Ralph.





More information about the llvm-dev mailing list