Advertisement
tyler569

Untitled

Apr 27th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. 00000000004004ac <main>:
  2.  
  3. int main()
  4. {
  5. 4004ac: 55 push %rbp
  6. 4004ad: 48 89 e5 mov %rsp,%rbp
  7. int a = 1;
  8. 4004b0: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%rbp)
  9. float b = 2;
  10. 4004b7: 8b 05 ef 00 00 00 mov 0xef(%rip),%eax # 4005ac <_IO_stdin_used+0x4>
  11. 4004bd: 89 45 fc mov %eax,-0x4(%rbp)
  12. int i;
  13.  
  14. for (i=1; i<10; i++)
  15. 4004c0: c7 45 f8 01 00 00 00 movl $0x1,-0x8(%rbp)
  16. 4004c7: eb 17 jmp 4004e0 <main+0x34>
  17. {
  18. b += a;
  19. 4004c9: f3 0f 2a 45 f4 cvtsi2ssl -0xc(%rbp),%xmm0
  20. 4004ce: f3 0f 10 4d fc movss -0x4(%rbp),%xmm1
  21. 4004d3: f3 0f 58 c1 addss %xmm1,%xmm0
  22. 4004d7: f3 0f 11 45 fc movss %xmm0,-0x4(%rbp)
  23. {
  24. int a = 1;
  25. float b = 2;
  26. int i;
  27.  
  28. for (i=1; i<10; i++)
  29. 4004dc: 83 45 f8 01 addl $0x1,-0x8(%rbp)
  30. 4004e0: 83 7d f8 09 cmpl $0x9,-0x8(%rbp)
  31. 4004e4: 7e e3 jle 4004c9 <main+0x1d>
  32. {
  33. b += a;
  34. }
  35. return b;
  36. 4004e6: f3 0f 10 45 fc movss -0x4(%rbp),%xmm0
  37. 4004eb: f3 0f 2c c0 cvttss2si %xmm0,%eax
  38. }
  39. 4004ef: 5d pop %rbp
  40. 4004f0: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement