search for: abandonedexperi

Displaying 2 results from an estimated 2 matches for "abandonedexperi".

2007 Oct 15
0
[LLVMdev] transitions from C code to LLVM JIT code and back
...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. When I was first looking at LLVM, I googled a lot, and found somebody saying to do it this way: http://onesadcookie.com/trac/browser/AbandonedExperiments/Argh/CodeGen.g (lines 43-51). I'm pretty sure now though that that's the wrong way to do it, that you can just add an existing C function to LLVM's function table and it'll get called automatically. There was somebody talking about this on this list recently... -Keith
2007 Oct 15
3
[LLVMdev] transitions from C code to LLVM JIT code and back
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