¡@

Home 

c++ Programming Glossary: eax

Is delete[] equal to delete?

http://stackoverflow.com/questions/1553382/is-delete-equal-to-delete

code generated by VS2005 delete ptr 0041351D mov eax dword ptr ptr 00413520 mov dword ptr ebp 0ECh eax 00413526 mov.. mov eax dword ptr ptr 00413520 mov dword ptr ebp 0ECh eax 00413526 mov ecx dword ptr ebp 0ECh 0041352C push ecx 0041352D.. delete 4111DBh 00413532 add esp 4 delete ptr 00413535 mov eax dword ptr ptr 00413538 mov dword ptr ebp 0E0h eax 0041353E mov..

Why can you return from a non-void function without returning a value without producing a compiler error?

http://stackoverflow.com/questions/1610030/why-can-you-return-from-a-non-void-function-without-returning-a-value-without-pr

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

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 12.. vector_index S s return s.v 3 movq 8 rdi rax movl 12 rax eax ret Conclusion Indexing a vector is the same damn thing as indexing.. 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 40 rdi rax movl rax..

Why is one loop so much slower than two loops?

http://stackoverflow.com/questions/8547778/why-is-one-loop-so-much-slower-than-two-loops

xmm0 movsd xmm0 mmword ptr esi 10h addsd xmm0 mmword ptr eax 30h movsd mmword ptr eax 30h xmm0 movsd xmm0 mmword ptr edx.. ptr esi 10h addsd xmm0 mmword ptr eax 30h movsd mmword ptr eax 30h xmm0 movsd xmm0 mmword ptr edx 20h addsd xmm0 mmword ptr.. xmm0 movsd xmm0 mmword ptr esi 18h addsd xmm0 mmword ptr eax 38h Each loop of the double loop example produces this code..

CPUID implementations in C++

http://stackoverflow.com/questions/1666093/cpuid-implementations-in-c

is set to zero for CPUID function 4 #endif const uint32_t EAX const return regs 0 const uint32_t EBX const return regs 1 const..

Unusual heap size limitations in VS2003 C++

http://stackoverflow.com/questions/2469738/unusual-heap-size-limitations-in-vs2003-c

ja _nh_malloc 29h 40B189h With the registers as follows EAX 009C8AF0 EBX FFFFFFFF ECX 009C8A88 EDX 00747365 ESI 00430F80..

Programatically detect number of physical processors/cores or if hyper-threading is active on Windows, Mac and Linux

http://stackoverflow.com/questions/2901694/programatically-detect-number-of-physical-processors-cores-or-if-hyper-threading

CPU core count If vendor 'GenuineIntel' this is 1 plus EAX 31 26 from CPUID function 4 If vendor 'AuthenticAMD' this is.. Get DCP cache info cpuID 4 regs cores regs 0 26 0x3f 1 EAX 31 26 1 else if cpuVendor AuthenticAMD Get NC Number of CPU..

Should ALL global variables be volatile-qualified?

http://stackoverflow.com/questions/6858247/should-all-global-variables-be-volatile-qualified

imagine that bar might compile to something like this push EAX mov EAX global_value inc EAX push EAX call some_function call.. that bar might compile to something like this push EAX mov EAX global_value inc EAX push EAX call some_function call foo inc.. to something like this push EAX mov EAX global_value inc EAX push EAX call some_function call foo inc EAX push EAX call some_function..

What happens if main() does not return an int value?

http://stackoverflow.com/questions/8844915/what-happens-if-main-does-not-return-an-int-value

caller expects returned int values to be returned in the EAX Intel register then that's what it will read to determine the..

Find a function by it signature in Windows DLL

http://stackoverflow.com/questions/9644717/find-a-function-by-it-signature-in-windows-dll

74 24 JE SHORT USER32.765DEA43 765DEA1F 64 A1 18000000 MOV EAX DWORD PTR FS 18 765DEA25 6A 00 PUSH 0 765DEA27 FF70 24 PUSH.. 765DEA25 6A 00 PUSH 0 765DEA27 FF70 24 PUSH DWORD PTR DS EAX 24 765DEA2A 68 A49E5E76 PUSH USER32.765E9EA4 765DEA2F FF15 34145876.. kernel32.InterlockedCompareExchange 765DEA35 85C0 TEST EAX EAX 765DEA37 75 0A JNZ SHORT USER32.765DEA43 765DEA39 C705 A09E5E76..