¡@

Home 

c++ Programming Glossary: leal

format of for loops

http://stackoverflow.com/questions/1783822/format-of-for-loops

results are for for int i 0 i 5 i movl 0 12 ebp jmp L2 L3 leal 12 ebp eax incl eax L2 cmpl 4 12 ebp jle L3 for int i 0 i 5.. 4 12 ebp jle L3 for int i 0 i 5 i movl 0 12 ebp jmp L7 L8 leal 12 ebp eax incl eax L7 cmpl 5 12 ebp jne L8 I think jle and..

Can we see the template instantiated code by C++ compiler

http://stackoverflow.com/questions/4448094/can-we-see-the-template-instantiated-code-by-c-compiler

.cfi_startproc .cfi_personality 0x3 __gxx_personality_v0 leal rsi rdi eax ret .cfi_endproc Which really is just an int addition.. eax ret .cfi_endproc Which really is just an int addition leal . Now how to decode the c name mangler there is a utility called..

performance of unsigned vs signed integers

http://stackoverflow.com/questions/4712315/performance-of-unsigned-vs-signed-integers

Here is the relevant x part signed division movl 8 ebp eax leal 7 eax edx testl eax eax cmovs edx eax sarl 3 eax And here is..

Does the evil cast get trumped by the evil compiler?

http://stackoverflow.com/questions/712334/does-the-evil-cast-get-trumped-by-the-evil-compiler

x86 with O0 no optimizations the generated assembly main leal 4 esp ecx andl 16 esp pushl 4 ecx pushl ebp movl esp ebp pushl.. pushl ebp movl esp ebp pushl ecx subl 36 esp movl 3 12 ebp leal 12 ebp eax movl eax 8 ebp movl 8 ebp eax movl 7 eax movl 12.. O1 as well as Os O2 O3 and other optimization levels main leal 4 esp ecx andl 16 esp pushl 4 ecx pushl ebp movl esp ebp pushl..