1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
|
.globl main
.text
.align 16
.type main,@function
main:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
pushl $0
call exit
addl $4,%esp
movl $0,%eax
.LC1:
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf2:
.size main,.Lf2-main
.globl nested
.align 16
.type nested,@function
nested:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
cmpl $4,20(%ebp)
jge .LC7
cmpl $114,24(%ebp)
je .LC10
.LC7:
cmpl $1,20(%ebp)
jne .LC9
movl 24(%ebp),%edi
cmpl $104,%edi
je .LC10
cmpl $105,%edi
je .LC10
.LC9:
cmpl $2,20(%ebp)
jne .LC4
movl 24(%ebp),%edi
cmpl $111,%edi
je .LC10
cmpl $121,%edi
jne .LC4
.LC10:
movl 24(%ebp),%edi
movl %edi,20(%ebp)
.LC4:
movl $0,%eax
.LC3:
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf11:
.size nested,.Lf11-nested
.globl s
.align 16
.type s,@function
s:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
.LC12:
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf13:
.size s,.Lf13-s
.data
.globl Dy
.align 4
.type Dy,@object
.size Dy,8
Dy:
.long 0
.space 4
.globl Dz
.align 4
.type Dz,@object
.size Dz,8
Dz:
.long 1
.space 4
.globl Dfunc
.text
.align 16
.type Dfunc,@function
Dfunc:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf16:
.size Dfunc,.Lf16-Dfunc
.globl f
.align 16
.type f,@function
f:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf18:
.size f,.Lf18-f
.globl f1
.align 16
.type f1,@function
f1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf20:
.size f1,.Lf20-f1
.globl f2
.align 16
.type f2,@function
f2:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf22:
.size f2,.Lf22-f2
.globl g
.align 16
.type g,@function
g:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf24:
.size g,.Lf24-g
.globl h
.align 16
.type h,@function
h:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf26:
.size h,.Lf26-h
.globl h1
.align 16
.type h1,@function
h1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf28:
.size h1,.Lf28-h1
.globl h2
.align 16
.type h2,@function
h2:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf30:
.size h2,.Lf30-h2
.data
.align 4
.type yy.32,@object
.size yy.32,4
yy.32:
.long 1
.globl set1
.text
.align 16
.type set1,@function
set1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf33:
.size set1,.Lf33-set1
.data
.align 4
.type yy.35,@object
.size yy.35,4
yy.35:
.long 2
.globl set2
.text
.align 16
.type set2,@function
set2:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf36:
.size set2,.Lf36-set2
.align 16
.type goo,@function
goo:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf38:
.size goo,.Lf38-goo
.globl sss
.align 16
.type sss,@function
sss:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf40:
.size sss,.Lf40-sss
.bss
.align 4
.type xr.42,@object
.size xr.42,4
.lcomm xr.42,4
.globl rrr
.text
.align 16
.type rrr,@function
rrr:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf43:
.size rrr,.Lf43-rrr
.globl setstatic
.align 16
.type setstatic,@function
setstatic:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf45:
.size setstatic,.Lf45-setstatic
.globl gx1
.align 16
.type gx1,@function
gx1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf47:
.size gx1,.Lf47-gx1
.globl ff1
.align 16
.type ff1,@function
ff1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf49:
.size ff1,.Lf49-ff1
.globl gg1
.align 16
.type gg1,@function
gg1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf51:
.size gg1,.Lf51-gg1
.globl hh1
.align 16
.type hh1,@function
hh1:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf53:
.size hh1,.Lf53-hh1
.globl cmp
.align 16
.type cmp,@function
cmp:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf55:
.size cmp,.Lf55-cmp
.globl sort
.align 16
.type sort,@function
sort:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf57:
.size sort,.Lf57-sort
.globl onearg
.align 16
.type onearg,@function
onearg:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl %esp,%ebp
movl %ebp,%esp
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.Lf65:
.size onearg,.Lf65-onearg
.bss
.globl ss4
.align 4
.type ss4,@object
.size ss4,4
.comm ss4,4
.align 4
.type ss2,@object
.size ss2,4
.lcomm ss2,4
.align 4
.type ss5,@object
.size ss5,4
.lcomm ss5,4
.globl ss3
.align 4
.type ss3,@object
.size ss3,4
.comm ss3,4
.align 4
.type ss1,@object
.size ss1,4
.lcomm ss1,4
.align 4
.type yy,@object
.size yy,4
.lcomm yy,4
.globl z
.align 4
.type z,@object
.size z,4
.comm z,4
.globl y
.align 4
.type y,@object
.size y,4
.comm y,4
.globl x
.align 4
.type x,@object
.size x,4
.comm x,4
.globl b
.align 4
.type b,@object
.size b,4
.comm b,4
.globl a
.align 4
.type a,@object
.size a,4
.comm a,4
.text
.ident "LCC: 4.1"
|