¡@

Home 

c++ Programming Glossary: rdi

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

int 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.. 12 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.. a pointer. int pointer_deref S s return s.p movq 32 rdi rax movl rax eax ret int iterator_deref S s return s.i movq..

Dual emission of constructor symbols

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

movq rsp rbp .cfi_offset 6 16 .cfi_def_cfa_register 6 movq rdi 8 rbp leave ret .cfi_endproc .LFE1 .size _ZN5ThingC2Ev . _ZN5ThingC2Ev.. movq rsp rbp .cfi_offset 6 16 .cfi_def_cfa_register 6 movq rdi 8 rbp leave ret .cfi_endproc So the generated code is...well...the.. .cfi_offset 6 16 .cfi_def_cfa_register 6 subq 48 rsp movq rdi 40 rbp leaq 32 rbp rax movq rax rdi call _ZN5ThingC1Ev leaq..

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

and implementation answers such as this is impossible according to the standard or yes MSVC does this with option xyzzy ... of f method address via the r12 register 59 movq r12 rdi Set up rdi register as `this` for after call 60 call rax Call.. method address via the r12 register 59 movq r12 rdi Set up rdi register as `this` for after call 60 call rax Call the F method...

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

56 r13 je .L3 movzbl 67 r13 eax .L4 movsbl al esi movq rbx rdi addl 1 r12d call _ZNSo3putEc movq rax rdi call _ZNSo5flushEv.. al esi movq rbx rdi addl 1 r12d call _ZNSo3putEc movq rax rdi call _ZNSo5flushEv cmpl 3 r12d jne .L5 c c gcc x86 undefined..