Java bytecode to LLVM IR

1,235 views
Skip to first unread message

Xiangyang Guo

unread,
Mar 2, 2015, 11:36:25 AM3/2/15
to rob...@googlegroups.com
Hi, All,

I want to convert Java bytecode to LLVM IR. After a quick search, it seems RoboVM has this function. But I don't know how to achieve this after reading the document. It seems that I need to modify the source code to do this. Could you tell me which part I need to focus on? Any hint is appreciable. Thanks

BTW, I just quickly scan the source code, it seems Soot is used in this project. But as far as I know, Soot has its own IR, so where is the IR converter? Thanks

Xiangyang

Mario Zechner

unread,
Mar 2, 2015, 1:47:50 PM3/2/15
to rob...@googlegroups.com
You can force RoboVM to dump the LLVM IR code via the -dump-intermediates switch. This will place .ll files in your RoboVM cache.

The LLVM IR alone will however not help you to run Java code natively. You'll also need the VMy bits, such as a GC and the runtime. Look into MethodCompiler.java for (most of) the Soot -> IR translation.

Xiangyang Guo

unread,
Mar 2, 2015, 6:50:21 PM3/2/15
to rob...@googlegroups.com
Hi, Mario,

Thanks for your quick reply. It works. Thank you.

Jiangbo Wu

unread,
May 30, 2015, 2:44:19 AM5/30/15
to rob...@googlegroups.com
Hi Xiangyang,
i see you can dump IR with Robovm, so could you help me to resolve it. i can't use "robovm-compiler-*.jar" with Robovm. Robovm want to use "robovm-dist/compiler/target/robovm-dist-compiler*.jar".
Could tell me how to debug Robovm with my build out jar?

Thanks
Jiangbo

RoboWatch

unread,
Dec 4, 2015, 1:08:05 PM12/4/15
to RoboVM
Hello
 Could you tell me how can I download roboVM and run it on a linux machine in order to convert Java ByteCodes to LLVM IR

Niklas Therning

unread,
Dec 7, 2015, 3:52:42 AM12/7/15
to RoboWatch, RoboVM
The LLVM IR produced by RoboVM is highly specific to RoboVM and I doubt it will be useful in any other context.

--
You received this message because you are subscribed to the Google Groups "RoboVM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robovm+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages