Advertisement
Guest User

Untitled

a guest
May 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. int main() {
  2. int a = 5;
  3. int b = 5 + a;
  4.  
  5. return 0;
  6. }
  7. -------------------------------------------
  8. main:
  9. .LFB0:
  10. push rbp
  11. mov rbp, rsp
  12. mov DWORD PTR [rbp-4], 5
  13. mov eax, DWORD PTR [rbp-4]
  14. add eax, 5
  15. mov DWORD PTR [rbp-8], eax
  16. mov eax, 0
  17. pop rbp
  18. ret
  19. -------------------------------------------
  20. .Ltext0:
  21. main:
  22. .LFB0:
  23. sub sp, sp, #16
  24. mov w0, 5
  25. str w0, [sp, 12]
  26. ldr w0, [sp, 12]
  27. add w0, w0, 5
  28. str w0, [sp, 8]
  29. mov w0, 0
  30. add sp, sp, 16
  31. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement