[LLVMdev] stdlib & math?

Duncan Sands baldrick at free.fr
Thu Oct 14 00:59:44 PDT 2010


Hi Paul,

> Im using llvm and my project is based on the interpreter example code.
>
> how do I use stdlib&  math libs?
>
> is it possible?

if you compile with libffi support (--enable-libffi) then you can pass
dynamic libraries to lli with -load=my_shared_library and call routines
from them from the bitcode being interpreted.

Ciao,

Duncan.



More information about the llvm-dev mailing list