Advertisement
Guest User

Optimized recursive

a guest
Apr 24th, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "rec.c"
  2.     .text
  3.     .p2align 4,,15
  4.     .globl  recs
  5.     .type   recs, @function
  6. recs:
  7. .LFB0:
  8.     .cfi_startproc
  9.     xorl    %eax, %eax
  10.     testl   %edi, %edi
  11.     je  .L2
  12.     .p2align 4,,10
  13.     .p2align 3
  14. .L3:
  15.     addl    %edi, %eax
  16.     subl    $1, %edi
  17.     jne .L3
  18. .L2:
  19.     rep
  20.     ret
  21.     .cfi_endproc
  22. .LFE0:
  23.     .size   recs, .-recs
  24.     .section    .text.startup,"ax",@progbits
  25.     .p2align 4,,15
  26.     .globl  main
  27.     .type   main, @function
  28. main:
  29. .LFB1:
  30.     .cfi_startproc
  31.     rep
  32.     ret
  33.     .cfi_endproc
  34. .LFE1:
  35.     .size   main, .-main
  36.     .ident  "GCC: (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3"
  37.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement