[LLVMdev] How to run vmjc created .bc files?

nicolas geoffray nicolas.geoffray at gmail.com
Mon Dec 7 22:31:51 PST 2009

Hi Michael,

Currently, you can run vmjc created .bc files by statically linking them
with all the .o needed files. For that, you can use the llcj tool, which
works more or less like GCC's gcj tool.

Note that you also need to create the libvmjc.so file, which contains the
standard library in native form. Do a make in the tools/vmjc/libvmjc
directory. Once this is done, update the LD_LIBRARY_PATH shell variable to
contain this file, and update PATH to contain the llvm tools and the vmkit
tools. You will then be able to use llcj.

Let me know if that helped. I will write a more detailed howto on vmkit's
website in a few days.


On Sun, Dec 6, 2009 at 10:07 PM, Michael Wu <mmwu at princeton.edu> wrote:

> Hi,
>    What do I need to link with vmjc created .bc files to actually run
> the .bc file? I tried running with lli but only got:
> LLVM ERROR: Program used external function 'StartJnjvmWithoutJIT' which
> could not be resolved!
> Thanks,
> Michael
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091208/8bfb0fa0/attachment.html>

More information about the llvm-dev mailing list