search for: onesadcooki

Displaying 3 results from an estimated 3 matches for "onesadcooki".

Did you mean: onesadcookie
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 th...
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
2007 Jul 02
2
[LLVMdev] API design
> > I'd like to get the extra checks working so that they can help find our > > more subtle bugs. Any idea what we should do here? > > I don't really have a good idea, but I also don't want to significantly > uglify the sourcebase... #define V_CALLINST(V, Args) new CallInst(V, Args.size() == 0 ? NULL : &Args[0], Args.size()) :p -Keith