¡@

Home 

c# Programming Glossary: edx

Why does adding local variables make .NET code slower

http://stackoverflow.com/questions/10369421/why-does-adding-local-variables-make-net-code-slower

as requested var isMultipleOf16 i 16 0 00000037 mov eax edx 00000039 and eax 0Fh 0000003c xor ecx ecx 0000003e test eax.. jmp 0000000000000047 00000042 mov eax 1 00000047 lea edx rbx rax c# .net performance compiler jit share improve this..

Is there a way to see the native code produced by theJITter for given C# / CIL?

http://stackoverflow.com/questions/1945719/is-there-a-way-to-see-the-native-code-produced-by-thejitter-for-given-c-sharp

2 2 60 TwoShifter 60 TwoDivider 60 00000026 mov dword ptr edx 4 3Ch ... 0000003b mov dword ptr edx 4 1Eh ... 00000057 mov.. mov dword ptr edx 4 3Ch ... 0000003b mov dword ptr edx 4 1Eh ... 00000057 mov dword ptr esi 4 1Eh Both statically divide.. mov dword ptr esi 4 3Ch ... 000000e3 mov dword ptr edx 4 0Fh ... 000000ff mov dword ptr esi 4 0Fh And statically divide..

x86/x64 CPUID in C#

http://stackoverflow.com/questions/3216535/x86-x64-cpuid-in-c-sharp

cpuid buffer 0 eax buffer 4 ebx buffer 8 ecx buffer 12 edx private readonly static byte x86CodeBytes 0x55 push ebp 0x8B.. dword ptr edi 8 ecx 0x89 0x57 0x0C mov dword ptr edi 12 edx 0x5F pop edi 0x5B pop ebx 0x8B 0xE5 mov esp ebp 0x5D pop.. dword ptr r8 8 ecx 0x41 0x89 0x50 0x0c mov dword ptr r8 12 edx 0x5b pop rbx 0xc3 ret Note that CPUID0 needs to be read in..

Why doesn't this code demonstrate the non-atomicity of reads/writes?

http://stackoverflow.com/questions/3679209/why-doesnt-this-code-demonstrate-the-non-atomicity-of-reads-writes

00000054 mov ecx dword ptr ebp 3Ch 00000057 mov edx 2 0000005c mov eax dword ptr ecx 0000005e mov eax dword ptr.. _d 00000042 mov eax dword ptr ds 001A9E78h 00000047 mov edx dword ptr ds 001A9E7Ch 0000004d mov dword ptr ebp 40h eax 00000050.. mov dword ptr ebp 40h eax 00000050 mov dword ptr ebp 3Ch edx UPDATE I was curious if this would fail if I forced non 8byte..