[LLVMdev] Access a specific address in the JIT compiler

Camille Troillard camille at osculator.net
Thu Jun 11 03:27:07 PDT 2009


I am using the JIT compiler to execute code that must interface with
the running process.
I would like to access some specific addresses.

The solution I found is to create a global variable for each address I
want to reference, and pass it as a mapping to the ExecutionEngine
with addGlobalMapping.

Is that how I should do this?
Is there no way to just reference the addresses with constants?


More information about the llvm-dev mailing list