0

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?

2
  • 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 ;) Commented Jul 6, 2012 at 16:34
  • Isn't your second question-candidate kind of the title of this stack? Commented Aug 3, 2012 at 9:37

1 Answer 1

1

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...).

Sign up to request clarification or add additional context in comments.

1 Comment

How about the VMKit project? This is a JVM implementation on top of LLVM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.