¡@

Home 

c++ Programming Glossary: rax

Using arrays or std::vectors in C++, what's the performance gap?

http://stackoverflow.com/questions/381621/using-arrays-or-stdvectors-in-c-whats-the-performance-gap

iterator i int pointer_index S s return s.p 3 movq 32 rdi rax movl 12 rax eax ret int vector_index S s return s.v 3 movq 8.. int pointer_index S s return s.p 3 movq 32 rdi rax movl 12 rax eax ret int vector_index S s return s.v 3 movq 8 rdi rax movl.. rax eax ret int vector_index S s return s.v 3 movq 8 rdi rax movl 12 rax eax ret Conclusion Indexing a vector is the same..

Dual emission of constructor symbols

http://stackoverflow.com/questions/6921295/dual-emission-of-constructor-symbols

6 subq 48 rsp movq rdi 40 rbp leaq 32 rbp rax movq rax rdi call _ZN5ThingC1Ev leaq 32 rbp rax movq rax rdi.. 6 subq 48 rsp movq rdi 40 rbp leaq 32 rbp rax movq rax rdi call _ZN5ThingC1Ev leaq 32 rbp rax movq rax rdi call _ZN5ThingD1Ev.. 32 rbp rax movq rax rdi call _ZN5ThingC1Ev leaq 32 rbp rax movq rax rdi call _ZN5ThingD1Ev leave ret .cfi_endproc So it..

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

register that already has vtable set up. 57 L9 58 movq r12 rax Get the location of f method address via the r12 register 59.. rdi Set up rdi register as `this` for after call 60 call rax Call the F method. address is in memory pointed at by rax 61.. rax Call the F method. address is in memory pointed at by rax 61 addl eax r14d 62 incl ebx 63 cmpl r13d ebx 64 jne L9 If I..

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

edi movl ebp esi .cfi_offset 3 40 call _ZNSolsEi movq rax rbx movq rax rax movq 24 rax rax movq 240 rbx rax r13 testq.. ebp esi .cfi_offset 3 40 call _ZNSolsEi movq rax rbx movq rax rax movq 24 rax rax movq 240 rbx rax r13 testq r13 r13 je .L10.. esi .cfi_offset 3 40 call _ZNSolsEi movq rax rbx movq rax rax movq 24 rax rax movq 240 rbx rax r13 testq r13 r13 je .L10 cmpb..