Advertisement
Guest User

Untitled

a guest
Jun 30th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. .file "test01.c"
  2. .intel_syntax noprefix
  3. .text
  4. .p2align 4,,15
  5. .globl func01
  6. .type func01, @function
  7. func01:
  8. .LFB24:
  9. .cfi_startproc
  10. add edi, esi
  11. add edx, edi
  12. add ecx, edx
  13. add ecx, r8d
  14. lea eax, [rcx+r9]
  15. ret
  16. .cfi_endproc
  17. .LFE24:
  18. .size func01, .-func01
  19. .section .rodata.str1.1,"aMS",@progbits,1
  20. .LC0:
  21. .string "result = %d\n"
  22. .section .text.startup,"ax",@progbits
  23. .p2align 4,,15
  24. .globl main
  25. .type main, @function
  26. main:
  27. .LFB23:
  28. .cfi_startproc
  29. sub rsp, 8
  30. .cfi_def_cfa_offset 16
  31. mov r9d, 6
  32. mov r8d, 5
  33. mov ecx, 4
  34. mov edx, 3
  35. mov esi, 2
  36. mov edi, 1
  37. xor eax, eax
  38. call func01
  39. lea rsi, .LC0[rip]
  40. mov edx, eax
  41. mov edi, 1
  42. xor eax, eax
  43. call __printf_chk@PLT
  44. xor eax, eax
  45. add rsp, 8
  46. .cfi_def_cfa_offset 8
  47. ret
  48. .cfi_endproc
  49. .LFE23:
  50. .size main, .-main
  51. .ident "GCC: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0"
  52. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement