[LLVMdev] transitions from C code to LLVM JIT code and back
Rob Barris
rbarris at blizzard.com
Mon Oct 15 14:40:18 PDT 2007
Started playing with LLVM this week, picking apart the examples to
see how they work.
So I think I understand the basic process of instantiating a program
and getting LLVM to generate the runnable code, and then running it.
What I have not seen an example of, and want to know if it's
possible, is having LLVM generated code calling back out to plain C
code during its run. What operations do you insert to encode the
concept of calling non-LLVM generated code (putting the needed args
on the stack, actually making the call, then cleaning up on return to
the LLVM generated code).
Sorry if this is in the docs and I just didn't spot it yet.
Rob
More information about the llvm-dev
mailing list