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