Advertisement
Guest User

Untitled

a guest
Dec 5th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.56 KB | None | 0 0
  1. GAS LISTING /tmp/ccbPDNK8.s page 1
  2.  
  3.  
  4. 1 .file "test2.cpp"
  5. 2 .text
  6. 3 .Ltext0:
  7. 4 .globl main
  8. 5 .type main, @function
  9. 6 main:
  10. 7 .LFB222:
  11. 8 .file 1 "test2.cpp"
  12. 1:test2.cpp **** #include <cmath>
  13. 2:test2.cpp ****
  14. 3:test2.cpp ****
  15. 4:test2.cpp **** struct init_sin
  16. 5:test2.cpp **** {
  17. 6:test2.cpp **** typedef double type;
  18. 7:test2.cpp **** static constexpr type value(int index) {
  19. 8:test2.cpp **** return 3*std::pow(std::sin(index * 2.0 * 3.1415 / 20.0),1.999);
  20. 9:test2.cpp **** }
  21. 10:test2.cpp **** };
  22. 11:test2.cpp ****
  23. 12:test2.cpp **** int main(){
  24. 9 .loc 1 12 0
  25. 10 .cfi_startproc
  26. 11 0000 55 pushq %rbp
  27. 12 .LCFI0:
  28. 13 .cfi_def_cfa_offset 16
  29. 14 .cfi_offset 6, -16
  30. 15 0001 4889E5 movq %rsp, %rbp
  31. 16 .LCFI1:
  32. 17 .cfi_def_cfa_register 6
  33. 18 .LBB2:
  34. 13:test2.cpp **** static double VALUE = init_sin::value(10);
  35. 14:test2.cpp ****
  36. 15:test2.cpp **** double VALUE_NONSTAT = 3*std::pow(std::sin(10 * 2.0 * 3.1415 / 20.0),1.999);
  37. 19 .loc 1 15 0
  38. 20 0004 48B81514 movabsq $4493441537811354645, %rax
  39. 20 3B7845E9
  40. 20 5B3E
  41. 21 000e 488945F8 movq %rax, -8(%rbp)
  42. 16:test2.cpp ****
  43. 17:test2.cpp **** return int(VALUE_NONSTAT);
  44. 22 .loc 1 17 0
  45. 23 0012 F20F1045 movsd -8(%rbp), %xmm0
  46. 23 F8
  47. 24 0017 F20F2CC0 cvttsd2si %xmm0, %eax
  48. 25 .LBE2:
  49. 18:test2.cpp **** }
  50. 26 .loc 1 18 0
  51. 27 001b 5D popq %rbp
  52. 28 .LCFI2:
  53. 29 .cfi_def_cfa 7, 8
  54. 30 001c C3 ret
  55. 31 .cfi_endproc
  56. 32 .LFE222:
  57. 33 .size main, .-main
  58. 34 .data
  59. 35 .align 8
  60. 36 .type _ZZ4mainE5VALUE, @object
  61. GAS LISTING /tmp/ccbPDNK8.s page 2
  62.  
  63.  
  64. 37 .size _ZZ4mainE5VALUE, 8
  65. 38 _ZZ4mainE5VALUE:
  66. 39 0000 15143B78 .long 2017137685
  67. 40 0004 45E95B3E .long 1046210885
  68. 41 .text
  69. 42 .Letext0:
  70. 43 .file 2 "/usr/include/c++/4.7/cmath"
  71. 44 .file 3 "/usr/include/x86_64-linux-gnu/bits/mathdef.h"
  72. 45 .file 4 "<built-in>"
  73. 46 .file 5 "/usr/include/c++/4.7/bits/cpp_type_traits.h"
  74. 47 .section .debug_info,"",@progbits
  75. 48 .Ldebug_info0:
  76. 49 0000 1C010000 .long 0x11c
  77. 50 0004 0200 .value 0x2
  78. 51 0006 00000000 .long .Ldebug_abbrev0
  79. 52 000a 08 .byte 0x8
  80. 53 000b 01 .uleb128 0x1
  81. 54 000c 00000000 .long .LASF17
  82. 55 0010 04 .byte 0x4
  83. 56 0011 00000000 .long .LASF18
  84. 57 0015 00000000 .long .LASF19
  85. 58 0019 00000000 .quad .Ltext0
  86. 58 00000000
  87. 59 0021 00000000 .quad .Letext0
  88. 59 00000000
  89. 60 0029 00000000 .long .Ldebug_line0
  90. 61 002d 02 .uleb128 0x2
  91. 62 002e 73746400 .string "std"
  92. 63 0032 04 .byte 0x4
  93. 64 0033 00 .byte 0
  94. 65 0034 49000000 .long 0x49
  95. 66 0038 03 .uleb128 0x3
  96. 67 0039 02 .byte 0x2
  97. 68 003a 1004 .value 0x410
  98. 69 003c B6000000 .long 0xb6
  99. 70 0040 03 .uleb128 0x3
  100. 71 0041 02 .byte 0x2
  101. 72 0042 1104 .value 0x411
  102. 73 0044 AB000000 .long 0xab
  103. 74 0048 00 .byte 0
  104. 75 0049 04 .uleb128 0x4
  105. 76 004a 00000000 .long .LASF20
  106. 77 004e 05 .byte 0x5
  107. 78 004f 46 .byte 0x46
  108. 79 0050 05 .uleb128 0x5
  109. 80 0051 01 .byte 0x1
  110. 81 0052 08 .byte 0x8
  111. 82 0053 00000000 .long .LASF0
  112. 83 0057 05 .uleb128 0x5
  113. 84 0058 02 .byte 0x2
  114. 85 0059 07 .byte 0x7
  115. 86 005a 00000000 .long .LASF1
  116. 87 005e 05 .uleb128 0x5
  117. 88 005f 04 .byte 0x4
  118. 89 0060 07 .byte 0x7
  119. 90 0061 00000000 .long .LASF2
  120. 91 0065 05 .uleb128 0x5
  121. GAS LISTING /tmp/ccbPDNK8.s page 3
  122.  
  123.  
  124. 92 0066 08 .byte 0x8
  125. 93 0067 07 .byte 0x7
  126. 94 0068 00000000 .long .LASF3
  127. 95 006c 05 .uleb128 0x5
  128. 96 006d 08 .byte 0x8
  129. 97 006e 07 .byte 0x7
  130. 98 006f 00000000 .long .LASF4
  131. 99 0073 05 .uleb128 0x5
  132. 100 0074 01 .byte 0x1
  133. 101 0075 06 .byte 0x6
  134. 102 0076 00000000 .long .LASF5
  135. 103 007a 05 .uleb128 0x5
  136. 104 007b 02 .byte 0x2
  137. 105 007c 05 .byte 0x5
  138. 106 007d 00000000 .long .LASF6
  139. 107 0081 06 .uleb128 0x6
  140. 108 0082 04 .byte 0x4
  141. 109 0083 05 .byte 0x5
  142. 110 0084 696E7400 .string "int"
  143. 111 0088 05 .uleb128 0x5
  144. 112 0089 08 .byte 0x8
  145. 113 008a 05 .byte 0x5
  146. 114 008b 00000000 .long .LASF7
  147. 115 008f 05 .uleb128 0x5
  148. 116 0090 08 .byte 0x8
  149. 117 0091 05 .byte 0x5
  150. 118 0092 00000000 .long .LASF8
  151. 119 0096 05 .uleb128 0x5
  152. 120 0097 10 .byte 0x10
  153. 121 0098 04 .byte 0x4
  154. 122 0099 00000000 .long .LASF9
  155. 123 009d 05 .uleb128 0x5
  156. 124 009e 08 .byte 0x8
  157. 125 009f 04 .byte 0x4
  158. 126 00a0 00000000 .long .LASF10
  159. 127 00a4 05 .uleb128 0x5
  160. 128 00a5 04 .byte 0x4
  161. 129 00a6 04 .byte 0x4
  162. 130 00a7 00000000 .long .LASF11
  163. 131 00ab 07 .uleb128 0x7
  164. 132 00ac 00000000 .long .LASF12
  165. 133 00b0 03 .byte 0x3
  166. 134 00b1 1C .byte 0x1c
  167. 135 00b2 A4000000 .long 0xa4
  168. 136 00b6 07 .uleb128 0x7
  169. 137 00b7 00000000 .long .LASF13
  170. 138 00bb 03 .byte 0x3
  171. 139 00bc 1D .byte 0x1d
  172. 140 00bd 9D000000 .long 0x9d
  173. 141 00c1 05 .uleb128 0x5
  174. 142 00c2 01 .byte 0x1
  175. 143 00c3 06 .byte 0x6
  176. 144 00c4 00000000 .long .LASF14
  177. 145 00c8 08 .uleb128 0x8
  178. 146 00c9 01 .byte 0x1
  179. 147 00ca 00000000 .long .LASF21
  180. 148 00ce 01 .byte 0x1
  181. GAS LISTING /tmp/ccbPDNK8.s page 4
  182.  
  183.  
  184. 149 00cf 0C .byte 0xc
  185. 150 00d0 81000000 .long 0x81
  186. 151 00d4 00000000 .quad .LFB222
  187. 151 00000000
  188. 152 00dc 00000000 .quad .LFE222
  189. 152 00000000
  190. 153 00e4 00000000 .long .LLST0
  191. 154 00e8 01 .byte 0x1
  192. 155 00e9 09 .uleb128 0x9
  193. 156 00ea 00000000 .quad .LBB2
  194. 156 00000000
  195. 157 00f2 00000000 .quad .LBE2
  196. 157 00000000
  197. 158 00fa 0A .uleb128 0xa
  198. 159 00fb 00000000 .long .LASF15
  199. 160 00ff 01 .byte 0x1
  200. 161 0100 0D .byte 0xd
  201. 162 0101 9D000000 .long 0x9d
  202. 163 0105 09 .byte 0x9
  203. 164 0106 03 .byte 0x3
  204. 165 0107 00000000 .quad _ZZ4mainE5VALUE
  205. 165 00000000
  206. 166 010f 0A .uleb128 0xa
  207. 167 0110 00000000 .long .LASF16
  208. 168 0114 01 .byte 0x1
  209. 169 0115 0F .byte 0xf
  210. 170 0116 9D000000 .long 0x9d
  211. 171 011a 02 .byte 0x2
  212. 172 011b 91 .byte 0x91
  213. 173 011c 68 .sleb128 -24
  214. 174 011d 00 .byte 0
  215. 175 011e 00 .byte 0
  216. 176 011f 00 .byte 0
  217. 177 .section .debug_abbrev,"",@progbits
  218. 178 .Ldebug_abbrev0:
  219. 179 0000 01 .uleb128 0x1
  220. 180 0001 11 .uleb128 0x11
  221. 181 0002 01 .byte 0x1
  222. 182 0003 25 .uleb128 0x25
  223. 183 0004 0E .uleb128 0xe
  224. 184 0005 13 .uleb128 0x13
  225. 185 0006 0B .uleb128 0xb
  226. 186 0007 03 .uleb128 0x3
  227. 187 0008 0E .uleb128 0xe
  228. 188 0009 1B .uleb128 0x1b
  229. 189 000a 0E .uleb128 0xe
  230. 190 000b 11 .uleb128 0x11
  231. 191 000c 01 .uleb128 0x1
  232. 192 000d 12 .uleb128 0x12
  233. 193 000e 01 .uleb128 0x1
  234. 194 000f 10 .uleb128 0x10
  235. 195 0010 06 .uleb128 0x6
  236. 196 0011 00 .byte 0
  237. 197 0012 00 .byte 0
  238. 198 0013 02 .uleb128 0x2
  239. 199 0014 39 .uleb128 0x39
  240. 200 0015 01 .byte 0x1
  241. GAS LISTING /tmp/ccbPDNK8.s page 5
  242.  
  243.  
  244. 201 0016 03 .uleb128 0x3
  245. 202 0017 08 .uleb128 0x8
  246. 203 0018 3A .uleb128 0x3a
  247. 204 0019 0B .uleb128 0xb
  248. 205 001a 3B .uleb128 0x3b
  249. 206 001b 0B .uleb128 0xb
  250. 207 001c 01 .uleb128 0x1
  251. 208 001d 13 .uleb128 0x13
  252. 209 001e 00 .byte 0
  253. 210 001f 00 .byte 0
  254. 211 0020 03 .uleb128 0x3
  255. 212 0021 08 .uleb128 0x8
  256. 213 0022 00 .byte 0
  257. 214 0023 3A .uleb128 0x3a
  258. 215 0024 0B .uleb128 0xb
  259. 216 0025 3B .uleb128 0x3b
  260. 217 0026 05 .uleb128 0x5
  261. 218 0027 18 .uleb128 0x18
  262. 219 0028 13 .uleb128 0x13
  263. 220 0029 00 .byte 0
  264. 221 002a 00 .byte 0
  265. 222 002b 04 .uleb128 0x4
  266. 223 002c 39 .uleb128 0x39
  267. 224 002d 00 .byte 0
  268. 225 002e 03 .uleb128 0x3
  269. 226 002f 0E .uleb128 0xe
  270. 227 0030 3A .uleb128 0x3a
  271. 228 0031 0B .uleb128 0xb
  272. 229 0032 3B .uleb128 0x3b
  273. 230 0033 0B .uleb128 0xb
  274. 231 0034 00 .byte 0
  275. 232 0035 00 .byte 0
  276. 233 0036 05 .uleb128 0x5
  277. 234 0037 24 .uleb128 0x24
  278. 235 0038 00 .byte 0
  279. 236 0039 0B .uleb128 0xb
  280. 237 003a 0B .uleb128 0xb
  281. 238 003b 3E .uleb128 0x3e
  282. 239 003c 0B .uleb128 0xb
  283. 240 003d 03 .uleb128 0x3
  284. 241 003e 0E .uleb128 0xe
  285. 242 003f 00 .byte 0
  286. 243 0040 00 .byte 0
  287. 244 0041 06 .uleb128 0x6
  288. 245 0042 24 .uleb128 0x24
  289. 246 0043 00 .byte 0
  290. 247 0044 0B .uleb128 0xb
  291. 248 0045 0B .uleb128 0xb
  292. 249 0046 3E .uleb128 0x3e
  293. 250 0047 0B .uleb128 0xb
  294. 251 0048 03 .uleb128 0x3
  295. 252 0049 08 .uleb128 0x8
  296. 253 004a 00 .byte 0
  297. 254 004b 00 .byte 0
  298. 255 004c 07 .uleb128 0x7
  299. 256 004d 16 .uleb128 0x16
  300. 257 004e 00 .byte 0
  301. GAS LISTING /tmp/ccbPDNK8.s page 6
  302.  
  303.  
  304. 258 004f 03 .uleb128 0x3
  305. 259 0050 0E .uleb128 0xe
  306. 260 0051 3A .uleb128 0x3a
  307. 261 0052 0B .uleb128 0xb
  308. 262 0053 3B .uleb128 0x3b
  309. 263 0054 0B .uleb128 0xb
  310. 264 0055 49 .uleb128 0x49
  311. 265 0056 13 .uleb128 0x13
  312. 266 0057 00 .byte 0
  313. 267 0058 00 .byte 0
  314. 268 0059 08 .uleb128 0x8
  315. 269 005a 2E .uleb128 0x2e
  316. 270 005b 01 .byte 0x1
  317. 271 005c 3F .uleb128 0x3f
  318. 272 005d 0C .uleb128 0xc
  319. 273 005e 03 .uleb128 0x3
  320. 274 005f 0E .uleb128 0xe
  321. 275 0060 3A .uleb128 0x3a
  322. 276 0061 0B .uleb128 0xb
  323. 277 0062 3B .uleb128 0x3b
  324. 278 0063 0B .uleb128 0xb
  325. 279 0064 49 .uleb128 0x49
  326. 280 0065 13 .uleb128 0x13
  327. 281 0066 11 .uleb128 0x11
  328. 282 0067 01 .uleb128 0x1
  329. 283 0068 12 .uleb128 0x12
  330. 284 0069 01 .uleb128 0x1
  331. 285 006a 40 .uleb128 0x40
  332. 286 006b 06 .uleb128 0x6
  333. 287 006c 9742 .uleb128 0x2117
  334. 288 006e 0C .uleb128 0xc
  335. 289 006f 00 .byte 0
  336. 290 0070 00 .byte 0
  337. 291 0071 09 .uleb128 0x9
  338. 292 0072 0B .uleb128 0xb
  339. 293 0073 01 .byte 0x1
  340. 294 0074 11 .uleb128 0x11
  341. 295 0075 01 .uleb128 0x1
  342. 296 0076 12 .uleb128 0x12
  343. 297 0077 01 .uleb128 0x1
  344. 298 0078 00 .byte 0
  345. 299 0079 00 .byte 0
  346. 300 007a 0A .uleb128 0xa
  347. 301 007b 34 .uleb128 0x34
  348. 302 007c 00 .byte 0
  349. 303 007d 03 .uleb128 0x3
  350. 304 007e 0E .uleb128 0xe
  351. 305 007f 3A .uleb128 0x3a
  352. 306 0080 0B .uleb128 0xb
  353. 307 0081 3B .uleb128 0x3b
  354. 308 0082 0B .uleb128 0xb
  355. 309 0083 49 .uleb128 0x49
  356. 310 0084 13 .uleb128 0x13
  357. 311 0085 02 .uleb128 0x2
  358. 312 0086 0A .uleb128 0xa
  359. 313 0087 00 .byte 0
  360. 314 0088 00 .byte 0
  361. GAS LISTING /tmp/ccbPDNK8.s page 7
  362.  
  363.  
  364. 315 0089 00 .byte 0
  365. 316 .section .debug_loc,"",@progbits
  366. 317 .Ldebug_loc0:
  367. 318 .LLST0:
  368. 319 0000 00000000 .quad .LFB222-.Ltext0
  369. 319 00000000
  370. 320 0008 01000000 .quad .LCFI0-.Ltext0
  371. 320 00000000
  372. 321 0010 0200 .value 0x2
  373. 322 0012 77 .byte 0x77
  374. 323 0013 08 .sleb128 8
  375. 324 0014 01000000 .quad .LCFI0-.Ltext0
  376. 324 00000000
  377. 325 001c 04000000 .quad .LCFI1-.Ltext0
  378. 325 00000000
  379. 326 0024 0200 .value 0x2
  380. 327 0026 77 .byte 0x77
  381. 328 0027 10 .sleb128 16
  382. 329 0028 04000000 .quad .LCFI1-.Ltext0
  383. 329 00000000
  384. 330 0030 1C000000 .quad .LCFI2-.Ltext0
  385. 330 00000000
  386. 331 0038 0200 .value 0x2
  387. 332 003a 76 .byte 0x76
  388. 333 003b 10 .sleb128 16
  389. 334 003c 1C000000 .quad .LCFI2-.Ltext0
  390. 334 00000000
  391. 335 0044 1D000000 .quad .LFE222-.Ltext0
  392. 335 00000000
  393. 336 004c 0200 .value 0x2
  394. 337 004e 77 .byte 0x77
  395. 338 004f 08 .sleb128 8
  396. 339 0050 00000000 .quad 0
  397. 339 00000000
  398. 340 0058 00000000 .quad 0
  399. 340 00000000
  400. 341 .section .debug_aranges,"",@progbits
  401. 342 0000 2C000000 .long 0x2c
  402. 343 0004 0200 .value 0x2
  403. 344 0006 00000000 .long .Ldebug_info0
  404. 345 000a 08 .byte 0x8
  405. 346 000b 00 .byte 0
  406. 347 000c 0000 .value 0
  407. 348 000e 0000 .value 0
  408. 349 0010 00000000 .quad .Ltext0
  409. 349 00000000
  410. 350 0018 1D000000 .quad .Letext0-.Ltext0
  411. 350 00000000
  412. 351 0020 00000000 .quad 0
  413. 351 00000000
  414. 352 0028 00000000 .quad 0
  415. 352 00000000
  416. 353 .section .debug_line,"",@progbits
  417. 354 .Ldebug_line0:
  418. 355 0000 C7000000 .section .debug_str,"MS",@progbits,1
  419. 355 0200AB00
  420. 355 00000101
  421. GAS LISTING /tmp/ccbPDNK8.s page 8
  422.  
  423.  
  424. 355 FB0E0D00
  425. 355 01010101
  426. 356 .LASF8:
  427. 357 0000 6C6F6E67 .string "long long int"
  428. 357 206C6F6E
  429. 357 6720696E
  430. 357 7400
  431. 358 .LASF15:
  432. 359 000e 56414C55 .string "VALUE"
  433. 359 4500
  434. 360 .LASF2:
  435. 361 0014 756E7369 .string "unsigned int"
  436. 361 676E6564
  437. 361 20696E74
  438. 361 00
  439. 362 .LASF19:
  440. 363 0021 2F686F6D .string "/home/zfmgpu/Desktop/AssemblerTest"
  441. 363 652F7A66
  442. 363 6D677075
  443. 363 2F446573
  444. 363 6B746F70
  445. 364 .LASF17:
  446. 365 0044 474E5520 .string "GNU C++ 4.7.3"
  447. 365 432B2B20
  448. 365 342E372E
  449. 365 3300
  450. 366 .LASF18:
  451. 367 0052 74657374 .string "test2.cpp"
  452. 367 322E6370
  453. 367 7000
  454. 368 .LASF16:
  455. 369 005c 56414C55 .string "VALUE_NONSTAT"
  456. 369 455F4E4F
  457. 369 4E535441
  458. 369 5400
  459. 370 .LASF4:
  460. 371 006a 6C6F6E67 .string "long long unsigned int"
  461. 371 206C6F6E
  462. 371 6720756E
  463. 371 7369676E
  464. 371 65642069
  465. 372 .LASF20:
  466. 373 0081 5F5F676E .string "__gnu_cxx"
  467. 373 755F6378
  468. 373 7800
  469. 374 .LASF0:
  470. 375 008b 756E7369 .string "unsigned char"
  471. 375 676E6564
  472. 375 20636861
  473. 375 7200
  474. 376 .LASF21:
  475. 377 0099 6D61696E .string "main"
  476. 377 00
  477. 378 .LASF7:
  478. 379 009e 6C6F6E67 .string "long int"
  479. 379 20696E74
  480. 379 00
  481. GAS LISTING /tmp/ccbPDNK8.s page 9
  482.  
  483.  
  484. 380 .LASF3:
  485. 381 00a7 6C6F6E67 .string "long unsigned int"
  486. 381 20756E73
  487. 381 69676E65
  488. 381 6420696E
  489. 381 7400
  490. 382 .LASF10:
  491. 383 00b9 646F7562 .string "double"
  492. 383 6C6500
  493. 384 .LASF13:
  494. 385 00c0 646F7562 .string "double_t"
  495. 385 6C655F74
  496. 385 00
  497. 386 .LASF1:
  498. 387 00c9 73686F72 .string "short unsigned int"
  499. 387 7420756E
  500. 387 7369676E
  501. 387 65642069
  502. 387 6E7400
  503. 388 .LASF5:
  504. 389 00dc 7369676E .string "signed char"
  505. 389 65642063
  506. 389 68617200
  507. 390 .LASF9:
  508. 391 00e8 6C6F6E67 .string "long double"
  509. 391 20646F75
  510. 391 626C6500
  511. 392 .LASF12:
  512. 393 00f4 666C6F61 .string "float_t"
  513. 393 745F7400
  514. 394 .LASF11:
  515. 395 00fc 666C6F61 .string "float"
  516. 395 7400
  517. 396 .LASF6:
  518. 397 0102 73686F72 .string "short int"
  519. 397 7420696E
  520. 397 7400
  521. 398 .LASF14:
  522. 399 010c 63686172 .string "char"
  523. 399 00
  524. 400 .ident "GCC: (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3"
  525. 401 .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement