search for: somecxxfunct

Displaying 1 result from an estimated 1 matches for "somecxxfunct".

2007 Sep 12
2
[LLVMdev] Methodology for interfacing LLVM JITed code with C++
...ns a function foo: void foo() { int x = builtin_func(); } We would like for builtin_func() to generate code that calls a C++ function. One option we see for implementing this is to write C++ code that contains stub functions, such as: extern "C" int call_builtin_func() { return SomeCXXFunction(); } or for something with method calls: extern "C" void call_func(Object* obj, ArgType* arg) { obj->func(arg); // func is a virtual method } and then compile this file with llvm-g++ to bitcode. At runtime, the JIT would load both our scripting code and this stub bitcode, an...