Hi Alysson,<div><br></div><div>Did you consider applying your pass to the JIT? You can add a pass by running the command:</div><div>./vmkit -std-compile-opts -load MyPass.so -myLLVMPass -java Hello</div><div><br></div><div>
If you want to create an executable, you can use the llcj tool, that works just like gcj:</div><div>llcj -std-compile-opts --main Hello Hello.class<br><br></div><div>Note though that you will need to create the libvmjc.so file. Please follow the instructions here:</div>
<div><a href="http://vmkit.llvm.org/use_aot.html">http://vmkit.llvm.org/use_aot.html</a></div><div><br></div><div>Nicolas</div><div><br><div class="gmail_quote">On Sun, Jul 4, 2010 at 7:49 PM, Alysson <span dir="ltr"><<a href="mailto:aishofpf@gmail.com">aishofpf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi all,<br>
Iīve been working on a LLVM transformation pass which performs the remotion of some Java redundant instructions.<br>So now itīs finished Iīd like to run the optimized programs generated by mypass.<br>But Iīve got some problems to do this, because I didnīt find a way to generate executable code from my output's pass.<br>


I'm using VMKit to compile java programs, and then I input the generated .bc code into my llvm pass.<br><br>Here are what I'm doing:<br>javac Example.java<br>vmjc Example<br>opt -load MyPass.so -myLLVMpass Example.bc -o output.bc<br>


<br>Please, does anybody know how to generate executable code from an .bc file? Can VMKit do it?<br><br>Thanks you all!<br>Best regards,<br><font color="#888888">Alysson
</font><br>_______________________________________________<br>
vmkit-commits mailing list<br>
<a href="mailto:vmkit-commits@cs.uiuc.edu">vmkit-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits</a><br>
<br></blockquote></div><br></div>