PDF, 97KB - Westfälische Wilhelms-Universität Münster
PDF, 97KB - Westfälische Wilhelms-Universität Münster
PDF, 97KB - Westfälische Wilhelms-Universität Münster
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
Anhang A: Bytecode des Beispiels „Insertion Sort“<br />
A Bytecode des Beispiels „Insertion Sort“<br />
Compiled from InsertionSort.java<br />
public class InsertionSort extends java.lang.Object {<br />
public InsertionSort();<br />
public static void main(java.lang.String[]);<br />
public static void insertionSort(int[]);<br />
static {};<br />
}<br />
Method InsertionSort()<br />
0 aload_0<br />
1 invokespecial #1 <br />
4 return<br />
Method void main(java.lang.String[])<br />
0 getstatic #2 <br />
3 invokestatic #3 <br />
6 getstatic #4 <br />
9 ldc #5 <br />
11 invokevirtual #6 <br />
14 iconst_0<br />
15 istore_1<br />
16 goto 51<br />
19 getstatic #4 <br />
22 new #7 <br />
25 dup<br />
26 invokespecial #8 <br />
29 getstatic #2 <br />
32 iload_1<br />
33 iaload<br />
34 invokevirtual #9 <br />
37 ldc #10 <br />
39 invokevirtual #11 <br />
42 invokevirtual #12 <br />
45 invokevirtual #6 <br />
48 iinc 1 1<br />
51 iload_1<br />
52 getstatic #2 <br />
55 arraylength<br />
56 if_icmplt 19<br />
59 return<br />
Method void insertionSort(int[])<br />
0 iconst_1<br />
1 istore_1<br />
2 goto 48<br />
5 aload_0<br />
6 iload_1<br />
7 iaload<br />
8 istore_2<br />
9 iload_1<br />
10 iconst_1<br />
23