Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "test.c"
- .text
- .globl function
- .type function, @function
- function:
- .LFB0:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $32, %esp
- leal -9(%ebp), %eax
- addl $13, %eax
- movl %eax, -4(%ebp)
- movl -4(%ebp), %eax
- movl (%eax), %eax
- leal 8(%eax), %edx
- movl -4(%ebp), %eax
- movl %edx, (%eax)
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE0:
- .size function, .-function
- .section .rodata
- .LC0:
- .string "%d\n"
- .text
- .globl main
- .type main, @function
- main:
- .LFB1:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- andl $-16, %esp
- subl $32, %esp
- movl $0, 28(%esp)
- movl $3, 8(%esp)
- movl $2, 4(%esp)
- movl $1, (%esp)
- call function
- movl $1, 28(%esp)
- movl 28(%esp), %eax
- movl %eax, 4(%esp)
- movl $.LC0, (%esp)
- call printf
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE1:
- .size main, .-main
- .ident "GCC: (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1"
- .section .note.GNU-stack,"",@progbits
Add Comment
Please, Sign In to add comment