Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "main.c"
- .text
- .globl fat
- .type fat, @function
- fat:
- pushl %ebp
- movl %esp, %ebp
- subl $8, %esp
- cmpl $1, 8(%ebp)
- jne .L2
- movl $1, %eax
- jmp .L3
- .L2:
- movl 8(%ebp), %eax
- decl %eax
- subl $12, %esp
- pushl %eax
- call fat
- addl $16, %esp
- imull 8(%ebp), %eax
- .L3:
- leave
- ret
- .size fat, .-fat
- .globl main
- .type main, @function
- main:
- leal 4(%esp), %ecx
- andl $-16, %esp
- pushl -4(%ecx)
- pushl %ebp
- movl %esp, %ebp
- pushl %ecx
- subl $4, %esp
- subl $12, %esp
- pushl $3
- call fat
- addl $16, %esp
- movl $0, %eax
- movl -4(%ebp), %ecx
- leave
- leal -4(%ecx), %esp
- ret
- .size main, .-main
- .ident "GCC: (GNU) 4.5.2"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement