[LLVMdev] Say hi to VMKit: JVM/LLVM, CLI/LLVM

Török Edwin edwintorok at gmail.com
Sat Mar 22 03:39:35 PDT 2008


Nicolas Geoffray wrote:
> Hi everyone,
>
> I've just checked in a JVM and a CLI for LLVM (called JnJVM and N3). 
> Both are placed in the vmkit svn directory.
> You can find the source code here:
>   

Very nice!
> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit
>
> Its licensed under the U of I Open Source License, so now that's in svn, 
> you can change whatever you want, as long as HelloWorld.java and 
> HelloWorld.cs work ;-)
>
> I haven't tested the build process on many machines, mostly on gentoo 
> linux/x86 and linux/ppc. There are probably some dev libs that VMKit 
> requires and the configure script does not check. A good thing would be 
> to make the build process cleaner.

The code is not 64-bit clean, attached is a patch to get it compile on
x86-64 Linux.
I also fixed some g++-4.2 warnings (const issues, symbol visibility).

The libJnJVM directory builds, but it won't run, I get endless messages
like this:
; ****************************************************** ;
;         SIGSEGV occured during a collection            ;
;   I'm trying to let the allocator in a coherent stat   ;
; but the collector is DEAD and will never collect again ;
; ****************************************************** ;

Probably there are more 64-bit issues to solve. Unfortunately I don't
have time to look into this deeper now.

Best regards,
--Edwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build64.patch
Type: text/x-diff
Size: 30879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080322/bfcc9ba2/attachment.patch>


More information about the llvm-dev mailing list