[LLVMdev] JVM bytecode generation vs. LLVM
Kevin Kelley
kevin at kelleysoft.com
Sat Aug 27 07:06:51 PDT 2011
On 8/27/2011 5:10 AM, Joachim Durchholz wrote:
> I'd need help for:
> * Determining where exactly the line is drawn between "this LLVM
> component is useful for JVM bytecode generation" and "this LLVM
> component isnt". (Constant folding would be, register allocation would
> not, but there's a lot of gray areas between these two.)
> * Not being a JNI or C++ expert, building the JNI infrastructure that
> would allow calling LLVM components from Java.
I'm experimenting with this: built LLVM and clang DLLs, then used
JNAerator/Bridj
(http://code.google.com/p/nativelibs4java/) to make java wrappers for them.
There are some various issues, Bridj has an ANTLR-based parser that
chokes a bit
on complicated headers like LLVM's, but it can be made to work. I've
got a fairly
complete wrap of clang-c working, and am making progress with llvm-c.
> Oh, and the question I'm having is: Is LLVM for me?
I don't know either, but it certainly seems like an interesting path to me!
Kevin Kelley
More information about the llvm-dev
mailing list