Bytecode-interessant.txt 1.2 KB

12345678910111213141516171819202122232425262728
  1. Compiled from "SimpleLoop.java"
  2. public class SimpleLoop extends java.lang.Object{
  3. public SimpleLoop();
  4. Code:
  5. 0: aload_0
  6. 1: invokespecial #1; //Method java/lang/Object."<init>":()V
  7. 4: return
  8. public static void main(java.lang.String[]);
  9. Code:
  10. 0: bipush -5
  11. 2: istore_1 /* Speichere einen int-Wert in das Array der lokalen Variablen */
  12. 3: iload_1 /* Lade den int-Wert einer lokalen Variablen auf den Operandenstapel */
  13. 4: bipush 15 /* lege 15 auf den Operandenstapel */
  14. 6: if_icmpge 46 /* if_icmpge pops the top two ints off the stack
  15. and compares them. If value2 is greater than or equal to value1,
  16. execution branches to the address (pc + branchoffset), where pc
  17. is the address of the if_icmpge opcode in the bytecode and branchoffset
  18. is a 16-bit signed integer parameter following the if_icmpge opcode in
  19. the bytecode. If value2 is less than value1, execution continues at the
  20. next instruction.*/
  21. 9-37: /* String erstellen, i*i berechnen, String ausgeben */
  22. 40: iinc 1, 1 /* iinc <varnum> <n> increments the int held in the local variable <varnum> by <n> */
  23. 43: goto 3
  24. 46: return
  25. }