Advertisement
utroz

Untitled

Feb 13th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "main.c"
  2.     .text
  3. .globl fat
  4.     .type   fat, @function
  5. fat:
  6.     pushl   %ebp
  7.     movl    %esp, %ebp
  8.     subl    $8, %esp
  9.     cmpl    $1, 8(%ebp)
  10.     jne .L2
  11.     movl    $1, %eax
  12.     jmp .L3
  13. .L2:
  14.     movl    8(%ebp), %eax
  15.     decl    %eax
  16.     subl    $12, %esp
  17.     pushl   %eax
  18.     call    fat
  19.     addl    $16, %esp
  20.     imull   8(%ebp), %eax
  21. .L3:
  22.     leave
  23.     ret
  24.     .size   fat, .-fat
  25. .globl main
  26.     .type   main, @function
  27. main:
  28.     leal    4(%esp), %ecx
  29.     andl    $-16, %esp
  30.     pushl   -4(%ecx)
  31.     pushl   %ebp
  32.     movl    %esp, %ebp
  33.     pushl   %ecx
  34.     subl    $4, %esp
  35.     subl    $12, %esp
  36.     pushl   $3
  37.     call    fat
  38.     addl    $16, %esp
  39.     movl    $0, %eax
  40.     movl    -4(%ebp), %ecx
  41.     leave
  42.     leal    -4(%ecx), %esp
  43.     ret
  44.     .size   main, .-main
  45.     .ident  "GCC: (GNU) 4.5.2"
  46.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement