Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I have read my SICP today

Name: Anonymous 2009-11-08 21:09

Name: Anonymous 2009-11-09 15:05

Holy shit, the code it generates for

uint32_t cObject(void)
{
    return 0x7A69;
}


is this:

push ebp
mov ebp, esp
sub esp, 00000018
mov eax, dword ptr [0804971C]
mov dword ptr [ebp-04], eax
xor eax, eax
mov eax, 0007A69
mov edx, dword ptr [ebp-04]
xor edx, dword ptr [0804971C]
je 00000025
call FFFFFF48
leave
ret


Anyone know what the extra bullshit is?  Any line that has anything to do with EDX or 0804971C is unnecessary to the function, and so it the jump-if-equal and that call...  I'm guessing this is some kind of protection but I don't know what it would protect against.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List