Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $ cat t.c
  2. int f(int *a, int *b) {
  3. *a = 1;
  4. *b = 2;
  5. return *a;
  6. }
  7.  
  8. int g(int *a, long *b) {
  9. *a = 1;
  10. *b = 2;
  11. return *a;
  12. }
  13. $ gcc -m32 -O3 -S t.c && cat t.s
  14. .file "t.c"
  15. .section .text.unlikely,"ax",@progbits
  16. .LCOLDB0:
  17. .text
  18. .LHOTB0:
  19. .p2align 4,,15
  20. .globl f
  21. .type f, @function
  22. f:
  23. .LFB0:
  24. .cfi_startproc
  25. movl 4(%esp), %eax
  26. movl 8(%esp), %edx
  27. movl $1, (%eax)
  28. movl $2, (%edx)
  29. movl (%eax), %eax
  30. ret
  31. .cfi_endproc
  32. .LFE0:
  33. .size f, .-f
  34. .section .text.unlikely
  35. .LCOLDE0:
  36. .text
  37. .LHOTE0:
  38. .section .text.unlikely
  39. .LCOLDB1:
  40. .text
  41. .LHOTB1:
  42. .p2align 4,,15
  43. .globl g
  44. .type g, @function
  45. g:
  46. .LFB1:
  47. .cfi_startproc
  48. movl 4(%esp), %eax
  49. movl $1, (%eax)
  50. movl 8(%esp), %eax
  51. movl $2, (%eax)
  52. movl $1, %eax
  53. ret
  54. .cfi_endproc
  55. .LFE1:
  56. .size g, .-g
  57. .section .text.unlikely
  58. .LCOLDE1:
  59. .text
  60. .LHOTE1:
  61. .ident "GCC: (Debian 4.9.2-10) 4.9.2"
  62. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement