[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli

John van Schie jcschie at cs.uu.nl
Sat Dec 8 03:29:02 PST 2007


Chris Lattner wrote:
> Yes, certainly.  If you want the JIT to work, you need to link your .o  
> files together into a .so/.dylib file, then use the 'lli -load  
> foo.dylib' option to load it.  If you want to natively link your  
> application together, just toss your .o files on the native link line.
>
>   
Thanks! I was a bit confused by the --help description of the load 
option. I guessed that it was an option to load an optimization that 
could be applied by the JIT compiler.

-- John





More information about the llvm-dev mailing list