Advertisement
DragonHeart335

Untitled

Apr 19th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. include <stdio.h>
  2. int main()
  3. {
  4. char a[]="foo";
  5. puts(a);
  6. }
  7.  
  8. When compiled with gcc -S, Produces:
  9.  
  10. .file "stringtest1.c"
  11. .def ___main; .scl 2; .type 32; .endef
  12. .text
  13. .globl _main
  14. .def _main; .scl 2; .type 32; .endef
  15. _main:
  16. LFB6:
  17. .cfi_startproc
  18. pushl %ebp
  19. .cfi_def_cfa_offset 8
  20. .cfi_offset 5, -8
  21. movl %esp, %ebp
  22. .cfi_def_cfa_register 5
  23. andl $-16, %esp
  24. subl $32, %esp
  25. call ___main
  26. movl $7303014, 28(%esp)
  27. leal 28(%esp), %eax
  28. movl %eax, (%esp)
  29. call _puts
  30. leave
  31. .cfi_restore 5
  32. .cfi_def_cfa 4, 4
  33. ret
  34. .cfi_endproc
  35. LFE6:
  36. .ident "GCC: (GNU) 4.8.1"
  37. .def _puts; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement