Samuel Crow
2009-Feb-24 21:38 UTC
[LLVMdev] Calling LLVM IRbuilder from the LLVM JIT compiler
Hello, A friend and I am making a parser generator and in order to streamline the language development process, we were going to make the LLVM IR builder directly accessible using the LLVM Assembly language as a scripting language to generate the code. I had read somewhere on this list that the JIT compiler can execute native code using function pointers. My questions are these: What kind of name mangling problems would we run into by calling the LLVM libraries directly from an instance of the LLVM JIT compiler? Is this approach feasible? Is anyone else interested in the techniques we're trying to use? Thanks in advance, --Sam Crow
Gordon Henriksen
2009-Feb-24 21:55 UTC
[LLVMdev] Calling LLVM IRbuilder from the LLVM JIT compiler
On 2009-02-24, at 16:38, Samuel Crow wrote:> A friend and I am making a parser generator and in order to > streamline the language development process, we were going to make > the LLVM IR builder directly accessible using the LLVM Assembly > language as a scripting language to generate the code.You propose to write scripts in LLVM IR? To save time?> What kind of name mangling problems would we run into by calling the > LLVM libraries directly from an instance of the LLVM JIT compiler?Don't try to call C++ functions from not-C++. Use the C bindings instead. — Gordon
Possibly Parallel Threads
- [LLVMdev] accessing a bitcode library exported from C++ using the JIT
- [LLVMdev] accessing a bitcode library exported from C++ using the JIT
- [LLVMdev] accessing a bitcode library exported from C++ using the JIT
- [LLVMdev] Circular Deps from CMake build using makefile
- [LLVMdev] Circular Deps from CMake build using makefile