So, LLVM can compile java bytecode into llvm IF, right (via the tool class2llvm)? And the LLVM IF can be translated to any kind of target machine. So, since Xcode has a llvm "stack", shouldnt it be possible quite easily to take the IF, that was produced from a java class, and link it into a nice iPhone app? Anybody any experience or an idea how that could be done?
-
Q: What's your question? If you're asking "can I run Java apps on an iPhone?", Yes: there are several approaches. Including Cloud Browse. If you're asking "can I write a Java app, then use LLVM to translate it into an iOS app?", No: probably not ;)paulsm4– paulsm42012-07-06 16:34:43 +00:00Commented Jul 6, 2012 at 16:34
-
Isn't your second question-candidate kind of the title of this stack?docno– docno2012-08-03 09:37:34 +00:00Commented Aug 3, 2012 at 9:37
Add a comment
|
1 Answer
It's possible but not trivial. Getting Java code compiled to llvm bitcode is the least of the problems. Bigger problem is all the Java runtime that you'll need to support to make code run (like standard libraries, types, garbage collector, etc...).
1 Comment
robinmag
How about the VMKit project? This is a JVM implementation on top of LLVM.