How to compile "NOT JIT"?

Shigeru IKEDA js3guj at gold.ocn.ne.jp
Fri Sep 5 00:49:14 PDT 1997


> The total of 4 lines modification of machine.c seems good on my
> NetBSD-1.2.1-i386 system, but on my Linux (ix86, debian-based,
> kernel-2.0.29, libc-5.4.20, gcc-2.7.2.1, binutil-2.7) kaffe dies with
> Segmentation fault.

Sorry, I made a mistake. Kaffe dies on NetBSD-1.2.1, too. I installed
intrp-enabled kaffe on the different place than jit version. And I
did't know that LD_LIBRARY_PATH is ignored on NetBSD-1.2.1, so I used
jit-enabled libkaffe_vm.so.

I enabled *DBG(s) macros, and the output is the following:

*** on NetBSD-1.2.1 system ***
js3guj at venus:(~/kaffe-0.9.1/test/regression 16:28:35) $ javac HelloWorldApp.java 
Call to method java/lang/ThreadGroup.add(Ljava/lang/Thread;)V.
000: ALOAD_0
- local 0: ref 0x0
001: ASTORE_2
- stack 0: ref 0x0
002: ALOAD_2
- local 2: ref 0x0
003: MONITORENTER
- stack 0: ref 0x0
004: ALOAD_0
- local 0: ref 0x0
005: GETFIELD
  ARG 0-1: 37
- stack 0: ref 0x0
Illegal instruction - core dumped

***  on linux ix86 system ***
js3guj at mercury:(~/kaffe-0.9.1/test/regression 16:29:10) $ javac HelloWorldApp.java 
Call to method java/lang/ThreadGroup.add(Ljava/lang/Thread;)V.
000: ALOAD_0
- local 0: ref 0xbffffbc3
001: ASTORE_2
- stack 0: ref 0xbffffbc3
002: ALOAD_2
- local 2: ref 0xbffffbc3
003: MONITORENTER
- stack 0: ref 0xbffffbc3
004: ALOAD_0
- local 0: ref 0xbffffbc3
005: GETFIELD

  ARG 0-1: 37
- stack 0: ref 0xbffffbc3
008: IFEQ
  ARG 0-1: 11
- stack 0: int 1291863123
011: NEW
  ARG 0-1: 8
014: DUP
015: INVOKESPECIAL
  ARG 0-1: 20
- stack 0: ref 0x806a570

-- 
Shigeru IKEDA <js3guj at gold.ocn.ne.jp>
PGP Key fingerprint = 11 7A 97 F4 82 E8 5A 5A  75 A8 F3 79 82 BB C2 C4



More information about the kaffe mailing list