Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include <stdio.h>
- int main()
- {
- char a[]="foo";
- puts(a);
- }
- When compiled with gcc -S, Produces:
- .file "stringtest1.c"
- .def ___main; .scl 2; .type 32; .endef
- .text
- .globl _main
- .def _main; .scl 2; .type 32; .endef
- _main:
- LFB6:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- andl $-16, %esp
- subl $32, %esp
- call ___main
- movl $7303014, 28(%esp)
- leal 28(%esp), %eax
- movl %eax, (%esp)
- call _puts
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE6:
- .ident "GCC: (GNU) 4.8.1"
- .def _puts; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement