¡@

Home 

c++ Programming Glossary: r13d

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

_ZL4workii 4004d6 41 55 push r13 4004d8 41 89 fd mov r13d edi 4004db 41 54 push r12 4004dd 41 89 f4 mov r12d esi 4004e0.. _ZL4workii 4004fe 41 55 push r13 400500 41 89 f5 mov r13d esi 400503 41 54 push r12 400505 41 89 fc mov r12d edi 400508.. _ZL4workii 400501 41 55 push r13 400503 41 89 f5 mov r13d esi 400506 41 54 push r12 400508 41 89 fc mov r12d edi 40050b..

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

pointed at by rax 61 addl eax r14d 62 incl ebx 63 cmpl r13d ebx 64 jne L9 If I remove the virtual descriptors from the lines.. call 78 call __ZNK1A1fEv Call the F method. 79 addl eax r13d 80 incl ebx 81 cmpl r12d ebx 82 jne L16 So the difference in.. 47 LCFI8 48 pushq rbx 49 LCFI9 50 movq rdi r12 51 movl esi r13d 52 xorl r14d r14d 53 testl esi esi 54 je L8 55 xorl ebx ebx..