[LLVMdev] Getting address of label in jitted code

Mark Shannon marks at dcs.gla.ac.uk
Fri Jan 23 03:23:07 PST 2009


Dan,

> 
> On Jan 22, 2009, at 3:45 AM, Mark Shannon wrote:
> 
>> Hi,
>>
>> I need to get the address of a label in jitted code.
>> (This is so that I can insert a jump into the machine code to resume  
>> interpretation from compiled code)
> 
> Hello,
> 
> What's your plan for restoring register and memory state?

Put everything in memory at the yield point,
(its for x86 only at the moment).
Not super efficient, but should work.

So how do I get the address? ;)

Cheers,
Mark.



More information about the llvm-dev mailing list