¡@

Home 

c++ Programming Glossary: movq

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

vector 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.. rax movl 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.. as indexing 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..

Dual emission of constructor symbols

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

0x3 __gxx_personality_v0 pushq rbp .cfi_def_cfa_offset 16 movq rsp rbp .cfi_offset 6 16 .cfi_def_cfa_register 6 movq rdi 8.. 16 movq rsp rbp .cfi_offset 6 16 .cfi_def_cfa_register 6 movq rdi 8 rbp leave ret .cfi_endproc .LFE1 .size _ZN5ThingC2Ev ... 0x3 __gxx_personality_v0 pushq rbp .cfi_def_cfa_offset 16 movq rsp rbp .cfi_offset 6 16 .cfi_def_cfa_register 6 movq rdi 8..

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

_ZSt4cout 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.. 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 r13 r13 je.. .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 0..

while (1) Vs. for (;;) Is there a speed difference?

http://stackoverflow.com/questions/885908/while-1-vs-for-is-there-a-speed-difference

.type t_while @function t_while .LFB2 pushq rbp .LCFI0 movq rsp rbp .LCFI1 .L2 movl .LC0 edi call puts jmp .L2 .LFE2 .size.. t_for .type t_for @function t_for .LFB3 pushq rbp .LCFI2 movq rsp rbp .LCFI3 .L5 movl .LC0 edi call puts jmp .L5 .LFE3 .size..