Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. .file "zad4.cpp"
  2. .intel_syntax noprefix
  3. .section .text$_ZN9CoolClass3setEi,"x"
  4. .linkonce discard
  5. .align 2
  6. .globl __ZN9CoolClass3setEi
  7. .def __ZN9CoolClass3setEi; .scl 2; .type 32; .endef
  8. __ZN9CoolClass3setEi:
  9. LFB0:
  10. .cfi_startproc
  11. push ebp
  12. .cfi_def_cfa_offset 8
  13. .cfi_offset 5, -8
  14. mov ebp, esp
  15. .cfi_def_cfa_register 5
  16. sub esp, 4
  17. mov DWORD PTR [ebp-4], ecx
  18. mov eax, DWORD PTR [ebp-4]
  19. mov edx, DWORD PTR [ebp+8]
  20. mov DWORD PTR [eax+4], edx
  21. nop
  22. leave
  23. .cfi_restore 5
  24. .cfi_def_cfa 4, 4
  25. ret 4
  26. .cfi_endproc
  27. LFE0:
  28. .section .text$_ZN9CoolClass3getEv,"x"
  29. .linkonce discard
  30. .align 2
  31. .globl __ZN9CoolClass3getEv
  32. .def __ZN9CoolClass3getEv; .scl 2; .type 32; .endef
  33. __ZN9CoolClass3getEv:
  34. LFB1:
  35. .cfi_startproc
  36. push ebp
  37. .cfi_def_cfa_offset 8
  38. .cfi_offset 5, -8
  39. mov ebp, esp
  40. .cfi_def_cfa_register 5
  41. sub esp, 4
  42. mov DWORD PTR [ebp-4], ecx
  43. mov eax, DWORD PTR [ebp-4]
  44. mov eax, DWORD PTR [eax+4]
  45. leave
  46. .cfi_restore 5
  47. .cfi_def_cfa 4, 4
  48. ret
  49. .cfi_endproc
  50. LFE1:
  51. .section .text$_ZN13PlainOldClass3setEi,"x"
  52. .linkonce discard
  53. .align 2
  54. .globl __ZN13PlainOldClass3setEi
  55. .def __ZN13PlainOldClass3setEi; .scl 2; .type 32; .endef
  56. __ZN13PlainOldClass3setEi:
  57. LFB2:
  58. .cfi_startproc
  59. push ebp
  60. .cfi_def_cfa_offset 8
  61. .cfi_offset 5, -8
  62. mov ebp, esp
  63. .cfi_def_cfa_register 5
  64. sub esp, 4
  65. mov DWORD PTR [ebp-4], ecx
  66. mov eax, DWORD PTR [ebp-4]
  67. mov edx, DWORD PTR [ebp+8]
  68. mov DWORD PTR [eax], edx
  69. nop
  70. leave
  71. .cfi_restore 5
  72. .cfi_def_cfa 4, 4
  73. ret 4
  74. .cfi_endproc
  75. LFE2:
  76. .section .text$_ZN4BaseC2Ev,"x"
  77. .linkonce discard
  78. .align 2
  79. .globl __ZN4BaseC2Ev
  80. .def __ZN4BaseC2Ev; .scl 2; .type 32; .endef
  81. __ZN4BaseC2Ev:
  82. LFB7:
  83. .cfi_startproc
  84. push ebp
  85. .cfi_def_cfa_offset 8
  86. .cfi_offset 5, -8
  87. mov ebp, esp
  88. .cfi_def_cfa_register 5
  89. sub esp, 4
  90. mov DWORD PTR [ebp-4], ecx
  91. mov edx, OFFSET FLAT:__ZTV4Base+8
  92. mov eax, DWORD PTR [ebp-4]
  93. mov DWORD PTR [eax], edx
  94. nop
  95. leave
  96. .cfi_restore 5
  97. .cfi_def_cfa 4, 4
  98. ret
  99. .cfi_endproc
  100. LFE7:
  101. .section .text$_ZN9CoolClassC1Ev,"x"
  102. .linkonce discard
  103. .align 2
  104. .globl __ZN9CoolClassC1Ev
  105. .def __ZN9CoolClassC1Ev; .scl 2; .type 32; .endef
  106. __ZN9CoolClassC1Ev:
  107. LFB10:
  108. .cfi_startproc
  109. push ebp
  110. .cfi_def_cfa_offset 8
  111. .cfi_offset 5, -8
  112. mov ebp, esp
  113. .cfi_def_cfa_register 5
  114. sub esp, 24
  115. mov DWORD PTR [ebp-12], ecx
  116. mov eax, DWORD PTR [ebp-12]
  117. mov ecx, eax
  118. call __ZN4BaseC2Ev
  119. mov edx, OFFSET FLAT:__ZTV9CoolClass+8
  120. mov eax, DWORD PTR [ebp-12]
  121. mov DWORD PTR [eax], edx
  122. nop
  123. leave
  124. .cfi_restore 5
  125. .cfi_def_cfa 4, 4
  126. ret
  127. .cfi_endproc
  128. LFE10:
  129. .def ___main; .scl 2; .type 32; .endef
  130. .text
  131. .globl _main
  132. .def _main; .scl 2; .type 32; .endef
  133. _main:
  134. LFB4:
  135. .cfi_startproc
  136. lea ecx, [esp+4]
  137. .cfi_def_cfa 1, 0
  138. and esp, -16
  139. push DWORD PTR [ecx-4]
  140. push ebp
  141. .cfi_escape 0x10,0x5,0x2,0x75,0
  142. mov ebp, esp
  143. push ebx
  144. push ecx
  145. .cfi_escape 0xf,0x3,0x75,0x78,0x6
  146. .cfi_escape 0x10,0x3,0x2,0x75,0x7c
  147. sub esp, 32
  148. call ___main
  149. mov DWORD PTR [esp], 8
  150. call __Znwj
  151. mov ebx, eax
  152. mov ecx, ebx
  153. call __ZN9CoolClassC1Ev
  154. mov DWORD PTR [ebp-12], ebx
  155. lea eax, [ebp-16]
  156. mov DWORD PTR [esp], 42
  157. mov ecx, eax
  158. call __ZN13PlainOldClass3setEi
  159. sub esp, 4
  160. mov eax, DWORD PTR [ebp-12]
  161. mov eax, DWORD PTR [eax]
  162. mov edx, DWORD PTR [eax]
  163. mov eax, DWORD PTR [ebp-12]
  164. mov DWORD PTR [esp], 42
  165. mov ecx, eax
  166. call edx
  167. sub esp, 4
  168. mov eax, 0
  169. lea esp, [ebp-8]
  170. pop ecx
  171. .cfi_restore 1
  172. .cfi_def_cfa 1, 0
  173. pop ebx
  174. .cfi_restore 3
  175. pop ebp
  176. .cfi_restore 5
  177. lea esp, [ecx-4]
  178. .cfi_def_cfa 4, 4
  179. ret
  180. .cfi_endproc
  181. LFE4:
  182. .globl __ZTV9CoolClass
  183. .section .rdata$_ZTV9CoolClass,"dr"
  184. .linkonce same_size
  185. .align 4
  186. __ZTV9CoolClass:
  187. .long 0
  188. .long __ZTI9CoolClass
  189. .long __ZN9CoolClass3setEi
  190. .long __ZN9CoolClass3getEv
  191. .globl __ZTV4Base
  192. .section .rdata$_ZTV4Base,"dr"
  193. .linkonce same_size
  194. .align 4
  195. __ZTV4Base:
  196. .long 0
  197. .long __ZTI4Base
  198. .long ___cxa_pure_virtual
  199. .long ___cxa_pure_virtual
  200. .globl __ZTI9CoolClass
  201. .section .rdata$_ZTI9CoolClass,"dr"
  202. .linkonce same_size
  203. .align 4
  204. __ZTI9CoolClass:
  205. .long __ZTVN10__cxxabiv120__si_class_type_infoE+8
  206. .long __ZTS9CoolClass
  207. .long __ZTI4Base
  208. .globl __ZTS9CoolClass
  209. .section .rdata$_ZTS9CoolClass,"dr"
  210. .linkonce same_size
  211. .align 4
  212. __ZTS9CoolClass:
  213. .ascii "9CoolClass\0"
  214. .globl __ZTI4Base
  215. .section .rdata$_ZTI4Base,"dr"
  216. .linkonce same_size
  217. .align 4
  218. __ZTI4Base:
  219. .long __ZTVN10__cxxabiv117__class_type_infoE+8
  220. .long __ZTS4Base
  221. .globl __ZTS4Base
  222. .section .rdata$_ZTS4Base,"dr"
  223. .linkonce same_size
  224. .align 4
  225. __ZTS4Base:
  226. .ascii "4Base\0"
  227. .ident "GCC: (MinGW.org GCC-6.3.0-1) 6.3.0"
  228. .def __Znwj; .scl 2; .type 32; .endef
  229. .def ___cxa_pure_virtual; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement