¡@

Home 

c++ Programming Glossary: r12d

Why does gcc generate 15-20% faster code if I optimize for SIZE instead of speed?

http://stackoverflow.com/questions/19470873/why-does-gcc-generate-15-20-faster-code-if-i-optimize-for-size-instead-of-speed

fd mov r13d edi 4004db 41 54 push r12 4004dd 41 89 f4 mov r12d esi 4004e0 55 push rbp 4004e1 bd 00 c2 eb 0b mov ebp 0xbebc200.. f5 mov r13d esi 400503 41 54 push r12 400505 41 89 fc mov r12d edi 400508 55 push rbp 400509 bd 00 c2 eb 0b mov ebp 0xbebc200.. f5 mov r13d esi 400506 41 54 push r12 400508 41 89 fc mov r12d edi 40050b 55 push rbp 40050c bd 00 c2 eb 0b mov ebp 0xbebc200..

Hoisting the dynamic type out of a loop (a.k.a. doing Java the C++ way)

http://stackoverflow.com/questions/7451442/hoisting-the-dynamic-type-out-of-a-loop-a-k-a-doing-java-the-c-way

Call the F method. 79 addl eax r13d 80 incl ebx 81 cmpl r12d ebx 82 jne L16 So the difference in the above code is really.. r13 rdi 153 call __ZNK1A1fEv 154 movl eax ebx 155 movl 1 r12d 156 .align 4 0x90 157 L24 158 movq r13 rdi 159 call __ZNK1A1fEv.. r13 rdi 159 call __ZNK1A1fEv 160 addl eax ebx 161 incl r12d 162 cmpl 20 r12d 163 jne L24 164 movl ebx esi 165 movq __ZSt4cout@GOTPCREL..

Why does integer overflow on x86 with GCC cause an infinite loop?

http://stackoverflow.com/questions/7682477/why-does-integer-overflow-on-x86-with-gcc-cause-an-infinite-loop

movzbl 67 r13 eax .L4 movsbl al esi movq rbx rdi addl 1 r12d call _ZNSo3putEc movq rax rdi call _ZNSo5flushEv cmpl 3 r12d.. call _ZNSo3putEc movq rax rdi call _ZNSo5flushEv cmpl 3 r12d jne .L5 c c gcc x86 undefined behavior share improve this..

G++ 4.6 -std=gnu++0x: Static Local Variable Constructor Call Timing and Thread Safety

http://stackoverflow.com/questions/9533649/g-4-6-std-gnu0x-static-local-variable-constructor-call-timing-and-thread-s

al al 49 74 1a je 65 _Z1fv 0x45 4b 41 bc 00 00 00 00 mov r12d 0x0 51 bf 00 00 00 00 mov edi 0x0 56 e8 00 00 00 00 call 5b.. 1a je 4009a4 _Z1fv 0x45 40098a 41 bc 00 00 00 00 mov 0x0 r12d 400990 bf a0 20 40 00 mov 0x4020a0 edi 400995 e8 a6 00 00 00.. 40076e jmp 400792 f 0x6e # already initialised 400770 mov r12d edx 400773 mov r13 rax 400776 test bl bl 400778 jne 400784 f..