Die Java-VM

Id: jvm.tex,v 1.3 2006/01/26 06:28:12 waldmann Exp

Definiert hardware-unabhängige Plattform zur Ausführung von Java-Programmen.

Spezifikation: http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html

public static int example1(int, int);
  Code:
   0:   iconst_0
   1:   istore_2
   2:   iload_1
   3:   ifle    16
   6:   iload_2
   7:   iload_0
   8:   iadd
   9:   istore_2
   10:  iinc    1, -1
   13:  goto    2
   16:  iload_2
   17:  ireturn

benutzt operand stack zum Rechnen und lokalen Speicher (Tload/Tstore), Anweisungen sind getypt (iload, ...)



Johannes Waldmann 2006-02-02