Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. 19:21:13] cannonmatthews@arya-lan-cannonmatthews-com : src $ gcc -S -c add.c
  2. [19:21:20] cannonmatthews@arya-lan-cannonmatthews-com : src $ ls
  3. add.c add.s hw-answers-hugheyc pi scav
  4. [19:21:21] cannonmatthews@arya-lan-cannonmatthews-com : src $ cat add.s
  5. .file "add.c"
  6. .text
  7. .globl add
  8. .type add, @function
  9. add:
  10. .LFB0:
  11. .cfi_startproc
  12. pushq %rbp
  13. .cfi_def_cfa_offset 16
  14. .cfi_offset 6, -16
  15. movq %rsp, %rbp
  16. .cfi_def_cfa_register 6
  17. movl %edi, -4(%rbp)
  18. movl %esi, -8(%rbp)
  19. movl -4(%rbp), %edx
  20. movl -8(%rbp), %eax
  21. addl %edx, %eax
  22. popq %rbp
  23. .cfi_def_cfa 7, 8
  24. ret
  25. .cfi_endproc
  26. .LFE0:
  27. .size add, .-add
  28. .ident "GCC: (GNU) 5.3.1 20160406 (Red Hat 5.3.1-6)"
  29. .section .note.GNU-stack,"",@progbits
  30. [19:21:26] cannonmatthews@arya-lan-cannonmatthews-com : src $ cat add.c
  31. int add(int x, int y) {
  32. return x+y;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement