[vmkit-commits] Problems to generate executable code

nicolas geoffray nicolas.geoffray at gmail.com
Mon Jul 5 15:24:06 PDT 2010


Hi Alysson,

Did you consider applying your pass to the JIT? You can add a pass by
running the command:
./vmkit -std-compile-opts -load MyPass.so -myLLVMPass -java Hello

If you want to create an executable, you can use the llcj tool, that works
just like gcj:
llcj -std-compile-opts --main Hello Hello.class

Note though that you will need to create the libvmjc.so file. Please follow
the instructions here:
http://vmkit.llvm.org/use_aot.html

Nicolas

On Sun, Jul 4, 2010 at 7:49 PM, Alysson <aishofpf at gmail.com> wrote:

> Hi all,
> I´ve been working on a LLVM transformation pass which performs the remotion
> of some Java redundant instructions.
> So now it´s finished I´d like to run the optimized programs generated by
> mypass.
> 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.
> I'm using VMKit to compile java programs, and then I input the generated
> .bc code into my llvm pass.
>
> Here are what I'm doing:
> javac Example.java
> vmjc Example
> opt -load MyPass.so -myLLVMpass Example.bc -o output.bc
>
> Please, does anybody know how to generate executable code from an .bc file?
> Can VMKit do it?
>
> Thanks you all!
> Best regards,
> Alysson
> _______________________________________________
> vmkit-commits mailing list
> vmkit-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20100705/9826f78f/attachment.html>


More information about the vmkit-commits mailing list