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

Can your C compiler do this:

Name: Anonymous 2010-05-15 15:06


int main()
{
  int *p;
  p  = 0;
  *p = 0;
  return 0;
}


?

Name: Anonymous 2010-05-15 15:16

>>1
Yes, it generates the reasonable code(on x86):

C705 00000000 00000000    MOV DWORD PTR DS:[0],0
33C0                      XOR EAX,EAX
C3                        RETN

>>3
If it's true, it's a stupid requirement. On most architectures there can be something on address 0.

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