Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Apr 1999 18:31:23 -0700
From:      Jake <jake@checker.org>
To:        freebsd-java@FreeBSD.ORG
Subject:   Re: JIT for ELF JDK -- shujit
Message-ID:  <199904060131.SAA01206@h24-64-221-247.gv.wave.shaw.ca>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi, 

I've got the shuJIT compiler working with the ELF JDK
if anyone is interested; latest version -- 0.2.10.

I'm running up to date (today) 4.0-current, etc.
egcs, but I doubt that matters.

It just needed a simple patch to compiler.h, which I have
attached.

/usr/local/java/bin/i386/green_threads/java:
ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), 
dynamically linked, not stripped
 
/usr/local/java/lib/i386/green_threads/libshujit.so:
ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), 
not stripped

>cat hello.java
public class hello {
        public static void main(String[] argv) {
                System.out.println("Hello World!");
        }
}

>javac hello.java

>java hello
  shuJIT  for Sun JVM/IA-32  Copyright 1998,1999 by SHUDO Kazuyuki
Hello World!

:)  I haven't tested it in any major way, but it runs my latest
project for seng430 fine.

Cheers,

[-- Attachment #2 --]
--- compiler.h	Tue Feb 23 05:32:51 1999
+++ compiler.h	Mon Apr  5 17:11:34 1999
@@ -124,7 +124,7 @@
 #  undef  EXECUTEJAVA_IN_ASM
 #  undef  RESOLVE_SYMBOL_ON_CODE
 #  undef  SEARCH_SIGCONTEXT
-#  define LIBS_ADDDLSEG	"/usr/lib/aout/libc.so.3.1|/usr/lib/aout/libc.so.3.0|/usr/lib/libc.so.3.1|/usr/lib/libc.so.3.0,/usr/lib/aout/libm.so.2.0|/usr/lib/libm.so.2.0"
+#  define LIBS_ADDDLSEG	"/usr/lib/libc.so.3,/usr/lib/libm.so.2"
 #else
 #  undef  EXECUTEJAVA_IN_ASM
 #  undef  RESOLVE_SYMBOL_ON_CODE

[-- Attachment #3 --]
we are but packets in the internet of life 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904060131.SAA01206>