Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 19:21:13] cannonmatthews@arya-lan-cannonmatthews-com : src $ gcc -S -c add.c
- [19:21:20] cannonmatthews@arya-lan-cannonmatthews-com : src $ ls
- add.c add.s hw-answers-hugheyc pi scav
- [19:21:21] cannonmatthews@arya-lan-cannonmatthews-com : src $ cat add.s
- .file "add.c"
- .text
- .globl add
- .type add, @function
- add:
- .LFB0:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- movl %edi, -4(%rbp)
- movl %esi, -8(%rbp)
- movl -4(%rbp), %edx
- movl -8(%rbp), %eax
- addl %edx, %eax
- popq %rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE0:
- .size add, .-add
- .ident "GCC: (GNU) 5.3.1 20160406 (Red Hat 5.3.1-6)"
- .section .note.GNU-stack,"",@progbits
- [19:21:26] cannonmatthews@arya-lan-cannonmatthews-com : src $ cat add.c
- int add(int x, int y) {
- return x+y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement