[LLVMdev] jump table ?

Simon Burton simon at arrowtheory.com
Thu Jun 29 04:37:05 PDT 2006


On Thu, 29 Jun 2006 10:36:23 +0100
Ralph Corderoy <ralph at inputplus.co.uk> wrote:

> 
> 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.

I've had a look at this, and it's not yielding any results so far.
Surely objdump expects an elf header, symbol table, etc. ?

Simon.



More information about the llvm-dev mailing list