Hi Michael,<br><br>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.<br><br>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.<br>
<br>Let me know if that helped. I will write a more detailed howto on vmkit's website in a few days.<br><br>Nicolas<br><br><div class="gmail_quote">On Sun, Dec 6, 2009 at 10:07 PM, Michael Wu <span dir="ltr"><<a href="mailto:mmwu@princeton.edu">mmwu@princeton.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
    What do I need to link with vmjc created .bc files to actually run<br>
the .bc file? I tried running with lli but only got:<br>
LLVM ERROR: Program used external function 'StartJnjvmWithoutJIT' which<br>
could not be resolved!<br>
<br>
Thanks,<br>
Michael<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>