[kaffe] trace bytecodes

Eduardo Melione Abreu melione at cos.ufrj.br
Sat Apr 3 04:39:02 PST 2004


Hi,

I'm using ../kaffe/bin/java -vmdebug INT_INSTR Teste1 
and the output becames in a "loop state".

There is any possibility to the INT_INSTR output's be reported only 
once? 


The class is quite simple. 

class Teste1 {
    public static void main(String[] args) {

        int a, b, c, d;

        a = 10;
        b = 20;
        c = a + b;
    }
}

See the output generated:


melione at camundongo:~/javadtm/testes$ ../kaffe/bin/java -vmdebug INT_INSTR 
Teste1
000: NEW
003: DUP
004: INVOKESPECIAL
000: ALOAD_0
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
001: INVOKESPECIAL
000: RETURN
004: RETURN
007: PUTSTATIC
010: RETURN
000: NEW
003: DUP
004: LDC2
007: INVOKESPECIAL
000: ALOAD_0
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
001: ALOAD_1
001: ALOAD_2
001: ALOAD_3
002: INVOKESPECIAL
000: ALOAD_0
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
001: ALOAD_1
001: ALOAD_2
001: ALOAD_3
002: INVOKESPECIAL
000: ALOAD_0
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
001: INVOKESPECIAL
000: RETURN
004: ALOAD_1
004: ALOAD_2
004: ALOAD_3
005: IFNONNULL
018: ALOAD_1
018: ALOAD_2
018: ALOAD_3
019: LDC1
021: INVOKEVIRTUAL
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
001: ALOAD_0
001: ALOAD_1
001: ALOAD_2
001: ALOAD_3
002: IF_ACMPNE

... and so on...

It never stops!!

Thanks!
Eduardo.





More information about the kaffe mailing list