Ticket #67374: foo-gcc4.S

File foo-gcc4.S, 476 bytes (added by Cebtenzzre, 13 months ago)

assembly output of gcc-apple-4.2

Line 
1        .cstring
2LC0:
3        .ascii "Hello, world!\0"
4        .text
5.globl _main
6_main:
7        pushl   %ebp
8        movl    %esp, %ebp
9        pushl   %ebx
10        subl    $20, %esp
11        call    L3
12"L00000000001$pb":
13L3:
14        popl    %ebx
15        leal    LC0-"L00000000001$pb"(%ebx), %eax
16        movl    %eax, (%esp)
17        call    L_puts$stub
18        movl    $0, %eax
19        addl    $20, %esp
20        popl    %ebx
21        leave
22        ret
23        .section __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5
24L_puts$stub:
25        .indirect_symbol _puts
26        hlt ; hlt ; hlt ; hlt ; hlt
27        .subsections_via_symbols