[LLVMdev] Getting address of label in jitted code
Gordon Henriksen
gordonhenriksen at me.com
Fri Jan 23 09:00:14 PST 2009
On Jan 23, 2009, at 06:23, Mark Shannon wrote:
>> On Jan 22, 2009, at 3:45 AM, Mark Shannon wrote:
>>
>>> 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)
>>
>> 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? ;)
Hi Mark,
Dan was asking a loaded question. The answer is that LLVM doesn't
support taking the address of a label because of the question he asked.
— Gordon
More information about the llvm-dev
mailing list