.file "heikaikki.c" .section .rodata .LC0: .string "Hei %s!\n" .text .globl tervehdi .type tervehdi, @function tervehdi: .LFB2: pushq %rbp .LCFI0: movq %rsp, %rbp .LCFI1: subq $16, %rsp .LCFI2: movq %rdi, -8(%rbp) movq -8(%rbp), %rsi movl $.LC0, %edi movl $0, %eax call printf leave ret .LFE2: .size tervehdi, .-tervehdi .globl a_plus_b_ja_tervehdi .type a_plus_b_ja_tervehdi, @function a_plus_b_ja_tervehdi: .LFB3: pushq %rbp .LCFI3: movq %rsp, %rbp .LCFI4: subq $32, %rsp .LCFI5: movl %edi, -20(%rbp) movl %esi, -24(%rbp) movq %rdx, -32(%rbp) movl -24(%rbp), %eax addl -20(%rbp), %eax movl %eax, -4(%rbp) movq -32(%rbp), %rdi call tervehdi movl -4(%rbp), %eax leave ret .LFE3: .size a_plus_b_ja_tervehdi, .-a_plus_b_ja_tervehdi .section .rodata .LC1: .string "ONKO SIELL\304 KET\304\304N?" .LC2: .string "Hei maailma" .LC3: .string "Tulos oli %d" .text .globl main .type main, @function main: .LFB4: pushq %rbp .LCFI6: movq %rsp, %rbp .LCFI7: subq $32, %rsp .LCFI8: movl %edi, -20(%rbp) movq %rsi, -32(%rbp) cmpl $1, -20(%rbp) jg .L6 movl $.LC1, %edi call puts .L6: movl $.LC2, %edi call puts movl $1, -8(%rbp) jmp .L8 .L9: movl -8(%rbp), %eax cltq salq $3, %rax addq -32(%rbp), %rax movq (%rax), %rdx movl -8(%rbp), %esi movl $123, %edi call a_plus_b_ja_tervehdi movl %eax, -4(%rbp) movl -4(%rbp), %esi movl $.LC3, %edi movl $0, %eax call printf addl $1, -8(%rbp) .L8: movl -8(%rbp), %eax cmpl -20(%rbp), %eax jl .L9 movl $0, %eax leave ret .LFE4: .size main, .-main .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0x0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE1: .long .LEFDE1-.LASFDE1 .LASFDE1: .long .LASFDE1-.Lframe1 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0x0 .byte 0x4 .long .LCFI0-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .align 8 .LEFDE1: .LSFDE3: .long .LEFDE3-.LASFDE3 .LASFDE3: .long .LASFDE3-.Lframe1 .long .LFB3 .long .LFE3-.LFB3 .uleb128 0x0 .byte 0x4 .long .LCFI3-.LFB3 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .align 8 .LEFDE3: .LSFDE5: .long .LEFDE5-.LASFDE5 .LASFDE5: .long .LASFDE5-.Lframe1 .long .LFB4 .long .LFE4-.LFB4 .uleb128 0x0 .byte 0x4 .long .LCFI6-.LFB4 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .align 8 .LEFDE5: .ident "GCC: (GNU) 4.1.2 20080704 (Red Hat 4.1.2-50)" .section .note.GNU-stack,"",@progbits