[LLVMdev] how to call the function in hosting code from JITted IR code..?

Younwook Jang younwook at gmail.com
Thu May 29 06:08:53 PDT 2014


Hi, Waxiadao.

thank you, it works...!!


2014-05-29 0:00 GMT+09:00 waxiadao at gmail.com <waxiadao at gmail.com>:

> Hello,
> 1.If you're on Windows,particularly x86 one,you have to check whether the
> function test1 is renamed to _test1 in your executable.
> 2.You have to append parameters like -fpic -rdynamic to make sure that
> your function is to be exported.And if you don't want to do so,you may have
> to call llvm::sys::DynamicLibrary::AddSymbol() or create your own
> MemoryManager.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140529/5d9b31d1/attachment.html>


More information about the llvm-dev mailing list