Displaying 2 results from an estimated 2 matches for "getandcall".
2007 Jun 14
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi Jan,
In gcc for Linux, you have the -rdynamic option that allows an
executable to dlsym its symbols. Since llvm use dlsym to find the
symbols, you could try with this option. That's what I did. And don't
forget to use the C++ name if you compile with C++.
Cheers,
Nicolas
Jan Rehders wrote:
> Hi,
>
> I was able to try this on linux again. Unfortunately it doesn't work
2007 Jun 13
5
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
I was able to try this on linux again. Unfortunately it doesn't work
at all (neither using runFunction nor a CallInst). It simply says
function called get5 not known. Calling printf the same way works,
though. On linux the function is exported as "get5" from the
executable while it is called "_get5" on OS X. I could not spot any
other differences.. any