|
1 | 1 | 00000000 <foo>:
|
2 |
| - 0: b480 push {r7} |
3 |
| - 2: b085 sub sp, #20 |
4 |
| - 4: af00 add r7, sp, #0 |
5 |
| - 6: 6078 str r0, [r7, #4] |
6 |
| - 8: f04f 0300 mov.w r3, #0 |
7 |
| - c: 60fb str r3, [r7, #12] |
8 |
| - e: e003 b.n 18 <foo+0x18> |
9 |
| - 10: 68fb ldr r3, [r7, #12] |
10 |
| - 12: f103 0301 add.w r3, r3, #1 |
11 |
| - 16: 60fb str r3, [r7, #12] |
12 |
| - 18: 68fa ldr r2, [r7, #12] |
13 |
| - 1a: 687b ldr r3, [r7, #4] |
14 |
| - 1c: 4413 add r3, r2 |
15 |
| - 1e: 781b ldrb r3, [r3, #0] |
16 |
| - 20: 2b00 cmp r3, #0 |
17 |
| - 22: d1f5 bne.n 10 <foo+0x10> |
18 |
| - 24: 68fb ldr r3, [r7, #12] |
19 |
| - 26: 4618 mov r0, r3 |
20 |
| - 28: f107 0714 add.w r7, r7, #20 |
21 |
| - 2c: 46bd mov sp, r7 |
22 |
| - 2e: bc80 pop {r7} |
23 |
| - 30: 4770 bx lr |
24 |
| - 32: bf00 nop |
| 2 | + 0: b480 push {r7} |
| 3 | + 2: b085 sub sp, #20 |
| 4 | + 4: af00 add r7, sp, #0 |
| 5 | + 6: 6078 str r0, [r7, #4] |
| 6 | + 8: f04f 0300 mov.w r3, #0 |
| 7 | + c: 60fb str r3, [r7, #12] |
| 8 | + e: e003 b.n 18 <foo+0x18> |
| 9 | + 10: 68fb ldr r3, [r7, #12] |
| 10 | + 12: f103 0301 add.w r3, r3, #1 |
| 11 | + 16: 60fb str r3, [r7, #12] |
| 12 | + 18: 68fa ldr r2, [r7, #12] |
| 13 | + 1a: 687b ldr r3, [r7, #4] |
| 14 | + 1c: 4413 add r3, r2 |
| 15 | + 1e: 781b ldrb r3, [r3, #0] |
| 16 | + 20: 2b00 cmp r3, #0 |
| 17 | + 22: d1f5 bne.n 10 <foo+0x10> |
| 18 | + 24: 68fb ldr r3, [r7, #12] |
| 19 | + 26: 4618 mov r0, r3 |
| 20 | + 28: f107 0714 add.w r7, r7, #20 |
| 21 | + 2c: 46bd mov sp, r7 |
| 22 | + 2e: bc80 pop {r7} |
| 23 | + 30: 4770 bx lr |
| 24 | + 32: bf00 nop |
25 | 25 |
|
26 | 26 | 00000034 <foo2>:
|
27 |
| - 34: b580 push {r7, lr} |
28 |
| - 36: b086 sub sp, #24 |
29 |
| - 38: af00 add r7, sp, #0 |
30 |
| - 3a: 6078 str r0, [r7, #4] |
31 |
| - 3c: 6878 ldr r0, [r7, #4] |
32 |
| - 3e: f7ff fffe bl 0 <strlen> |
33 |
| - 42: 4603 mov r3, r0 |
34 |
| - 44: 60fb str r3, [r7, #12] |
35 |
| - 46: 68fb ldr r3, [r7, #12] |
36 |
| - 48: 4618 mov r0, r3 |
37 |
| - 4a: f7ff fffe bl 0 <malloc> |
38 |
| - 4e: 4603 mov r3, r0 |
39 |
| - 50: 613b str r3, [r7, #16] |
40 |
| - 52: f04f 0300 mov.w r3, #0 |
41 |
| - 56: 617b str r3, [r7, #20] |
42 |
| - 58: f04f 0300 mov.w r3, #0 |
43 |
| - 5c: 617b str r3, [r7, #20] |
44 |
| - 5e: e00b b.n 78 <foo2+0x44> |
45 |
| - 60: 697a ldr r2, [r7, #20] |
46 |
| - 62: 693b ldr r3, [r7, #16] |
47 |
| - 64: 4413 add r3, r2 |
48 |
| - 66: 6979 ldr r1, [r7, #20] |
49 |
| - 68: 687a ldr r2, [r7, #4] |
50 |
| - 6a: 440a add r2, r1 |
51 |
| - 6c: 7812 ldrb r2, [r2, #0] |
52 |
| - 6e: 701a strb r2, [r3, #0] |
53 |
| - 70: 697b ldr r3, [r7, #20] |
54 |
| - 72: f103 0301 add.w r3, r3, #1 |
55 |
| - 76: 617b str r3, [r7, #20] |
56 |
| - 78: 697a ldr r2, [r7, #20] |
57 |
| - 7a: 68fb ldr r3, [r7, #12] |
58 |
| - 7c: 429a cmp r2, r3 |
59 |
| - 7e: ddef ble.n 60 <foo2+0x2c> |
60 |
| - 80: 693b ldr r3, [r7, #16] |
61 |
| - 82: 4618 mov r0, r3 |
62 |
| - 84: f107 0718 add.w r7, r7, #24 |
63 |
| - 88: 46bd mov sp, r7 |
64 |
| - 8a: bd80 pop {r7, pc} |
| 27 | + 34: b580 push {r7, lr} |
| 28 | + 36: b086 sub sp, #24 |
| 29 | + 38: af00 add r7, sp, #0 |
| 30 | + 3a: 6078 str r0, [r7, #4] |
| 31 | + 3c: 6878 ldr r0, [r7, #4] |
| 32 | + 3e: f7ff fffe bl 0 <strlen> |
| 33 | + 42: 4603 mov r3, r0 |
| 34 | + 44: 60fb str r3, [r7, #12] |
| 35 | + 46: 68fb ldr r3, [r7, #12] |
| 36 | + 48: 4618 mov r0, r3 |
| 37 | + 4a: f7ff fffe bl 0 <malloc> |
| 38 | + 4e: 4603 mov r3, r0 |
| 39 | + 50: 613b str r3, [r7, #16] |
| 40 | + 52: f04f 0300 mov.w r3, #0 |
| 41 | + 56: 617b str r3, [r7, #20] |
| 42 | + 58: f04f 0300 mov.w r3, #0 |
| 43 | + 5c: 617b str r3, [r7, #20] |
| 44 | + 5e: e00b b.n 78 <foo2+0x44> |
| 45 | + 60: 697a ldr r2, [r7, #20] |
| 46 | + 62: 693b ldr r3, [r7, #16] |
| 47 | + 64: 4413 add r3, r2 |
| 48 | + 66: 6979 ldr r1, [r7, #20] |
| 49 | + 68: 687a ldr r2, [r7, #4] |
| 50 | + 6a: 440a add r2, r1 |
| 51 | + 6c: 7812 ldrb r2, [r2, #0] |
| 52 | + 6e: 701a strb r2, [r3, #0] |
| 53 | + 70: 697b ldr r3, [r7, #20] |
| 54 | + 72: f103 0301 add.w r3, r3, #1 |
| 55 | + 76: 617b str r3, [r7, #20] |
| 56 | + 78: 697a ldr r2, [r7, #20] |
| 57 | + 7a: 68fb ldr r3, [r7, #12] |
| 58 | + 7c: 429a cmp r2, r3 |
| 59 | + 7e: ddef ble.n 60 <foo2+0x2c> |
| 60 | + 80: 693b ldr r3, [r7, #16] |
| 61 | + 82: 4618 mov r0, r3 |
| 62 | + 84: f107 0718 add.w r7, r7, #24 |
| 63 | + 88: 46bd mov sp, r7 |
| 64 | + 8a: bd80 pop {r7, pc} |
65 | 65 |
|
66 | 66 | 0000008c <foo3>:
|
67 |
| - 8c: b590 push {r4, r7, lr} |
68 |
| - 8e: b085 sub sp, #20 |
69 |
| - 90: af00 add r7, sp, #0 |
70 |
| - 92: 6078 str r0, [r7, #4] |
71 |
| - 94: 6039 str r1, [r7, #0] |
72 |
| - 96: f04f 0300 mov.w r3, #0 |
73 |
| - 9a: 60bb str r3, [r7, #8] |
74 |
| - 9c: f04f 0300 mov.w r3, #0 |
75 |
| - a0: 60fb str r3, [r7, #12] |
76 |
| - a2: e026 b.n f2 <foo3+0x66> |
77 |
| - a4: 68fa ldr r2, [r7, #12] |
78 |
| - a6: 687b ldr r3, [r7, #4] |
79 |
| - a8: 4413 add r3, r2 |
80 |
| - aa: 781a ldrb r2, [r3, #0] |
81 |
| - ac: 68b9 ldr r1, [r7, #8] |
82 |
| - ae: 683b ldr r3, [r7, #0] |
83 |
| - b0: 440b add r3, r1 |
84 |
| - b2: 781b ldrb r3, [r3, #0] |
85 |
| - b4: 429a cmp r2, r3 |
86 |
| - b6: d113 bne.n e0 <foo3+0x54> |
87 |
| - b8: 68bb ldr r3, [r7, #8] |
88 |
| - ba: f103 0301 add.w r3, r3, #1 |
89 |
| - be: 60bb str r3, [r7, #8] |
90 |
| - c0: 68bc ldr r4, [r7, #8] |
91 |
| - c2: 6838 ldr r0, [r7, #0] |
92 |
| - c4: f7ff fffe bl 0 <strlen> |
93 |
| - c8: 4603 mov r3, r0 |
94 |
| - ca: 429c cmp r4, r3 |
95 |
| - cc: d10d bne.n ea <foo3+0x5e> |
96 |
| - ce: 68fa ldr r2, [r7, #12] |
97 |
| - d0: 68bb ldr r3, [r7, #8] |
98 |
| - d2: ebc3 0302 rsb r3, r3, r2 |
99 |
| - d6: f103 0201 add.w r2, r3, #1 |
100 |
| - da: 687b ldr r3, [r7, #4] |
101 |
| - dc: 4413 add r3, r2 |
102 |
| - de: e011 b.n 104 <foo3+0x78> |
103 |
| - e0: 68fa ldr r2, [r7, #12] |
104 |
| - e2: 68bb ldr r3, [r7, #8] |
105 |
| - e4: ebc3 0302 rsb r3, r3, r2 |
106 |
| - e8: 60fb str r3, [r7, #12] |
107 |
| - ea: 68fb ldr r3, [r7, #12] |
108 |
| - ec: f103 0301 add.w r3, r3, #1 |
109 |
| - f0: 60fb str r3, [r7, #12] |
110 |
| - f2: 68fc ldr r4, [r7, #12] |
111 |
| - f4: 6878 ldr r0, [r7, #4] |
112 |
| - f6: f7ff fffe bl 0 <strlen> |
113 |
| - fa: 4603 mov r3, r0 |
114 |
| - fc: 429c cmp r4, r3 |
115 |
| - fe: d3d1 bcc.n a4 <foo3+0x18> |
116 |
| - 100: f04f 33ff mov.w r3, #4294967295 |
117 |
| - 104: 4618 mov r0, r3 |
118 |
| - 106: f107 0714 add.w r7, r7, #20 |
119 |
| - 10a: 46bd mov sp, r7 |
120 |
| - 10c: bd90 pop {r4, r7, pc} |
121 |
| - 10e: bf00 nop 00000110 <main>: |
122 |
| - 110: b480 push {r7} |
123 |
| - 112: b083 sub sp, #12 |
124 |
| - 114: af00 add r7, sp, #0 |
125 |
| - 116: 6078 str r0, [r7, #4] |
126 |
| - 118: 6039 str r1, [r7, #0] |
127 |
| - 11a: f04f 0300 mov.w r3, #0 |
128 |
| - 11e: 4618 mov r0, r3 |
129 |
| - 120: f107 070c add.w r7, r7, #12 |
130 |
| - 124: 46bd mov sp, r7 |
131 |
| - 126: bc80 pop {r7} |
132 |
| - 128: 4770 bx lr |
133 |
| - 12a: bf00 nop |
| 67 | + 8c: b590 push {r4, r7, lr} |
| 68 | + 8e: b085 sub sp, #20 |
| 69 | + 90: af00 add r7, sp, #0 |
| 70 | + 92: 6078 str r0, [r7, #4] |
| 71 | + 94: 6039 str r1, [r7, #0] |
| 72 | + 96: f04f 0300 mov.w r3, #0 |
| 73 | + 9a: 60bb str r3, [r7, #8] |
| 74 | + 9c: f04f 0300 mov.w r3, #0 |
| 75 | + a0: 60fb str r3, [r7, #12] |
| 76 | + a2: e026 b.n f2 <foo3+0x66> |
| 77 | + a4: 68fa ldr r2, [r7, #12] |
| 78 | + a6: 687b ldr r3, [r7, #4] |
| 79 | + a8: 4413 add r3, r2 |
| 80 | + aa: 781a ldrb r2, [r3, #0] |
| 81 | + ac: 68b9 ldr r1, [r7, #8] |
| 82 | + ae: 683b ldr r3, [r7, #0] |
| 83 | + b0: 440b add r3, r1 |
| 84 | + b2: 781b ldrb r3, [r3, #0] |
| 85 | + b4: 429a cmp r2, r3 |
| 86 | + b6: d113 bne.n e0 <foo3+0x54> |
| 87 | + b8: 68bb ldr r3, [r7, #8] |
| 88 | + ba: f103 0301 add.w r3, r3, #1 |
| 89 | + be: 60bb str r3, [r7, #8] |
| 90 | + c0: 68bc ldr r4, [r7, #8] |
| 91 | + c2: 6838 ldr r0, [r7, #0] |
| 92 | + c4: f7ff fffe bl 0 <strlen> |
| 93 | + c8: 4603 mov r3, r0 |
| 94 | + ca: 429c cmp r4, r3 |
| 95 | + cc: d10d bne.n ea <foo3+0x5e> |
| 96 | + ce: 68fa ldr r2, [r7, #12] |
| 97 | + d0: 68bb ldr r3, [r7, #8] |
| 98 | + d2: ebc3 0302 rsb r3, r3, r2 |
| 99 | + d6: f103 0201 add.w r2, r3, #1 |
| 100 | + da: 687b ldr r3, [r7, #4] |
| 101 | + dc: 4413 add r3, r2 |
| 102 | + de: e011 b.n 104 <foo3+0x78> |
| 103 | + e0: 68fa ldr r2, [r7, #12] |
| 104 | + e2: 68bb ldr r3, [r7, #8] |
| 105 | + e4: ebc3 0302 rsb r3, r3, r2 |
| 106 | + e8: 60fb str r3, [r7, #12] |
| 107 | + ea: 68fb ldr r3, [r7, #12] |
| 108 | + ec: f103 0301 add.w r3, r3, #1 |
| 109 | + f0: 60fb str r3, [r7, #12] |
| 110 | + f2: 68fc ldr r4, [r7, #12] |
| 111 | + f4: 6878 ldr r0, [r7, #4] |
| 112 | + f6: f7ff fffe bl 0 <strlen> |
| 113 | + fa: 4603 mov r3, r0 |
| 114 | + fc: 429c cmp r4, r3 |
| 115 | + fe: d3d1 bcc.n a4 <foo3+0x18> |
| 116 | + 100: f04f 33ff mov.w r3, #4294967295 |
| 117 | + 104: 4618 mov r0, r3 |
| 118 | + 106: f107 0714 add.w r7, r7, #20 |
| 119 | + 10a: 46bd mov sp, r7 |
| 120 | + 10c: bd90 pop {r4, r7, pc} |
| 121 | + 10e: bf00 nop |
0 commit comments