more than 256 Mbyte?

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Jul 9 23:21:00 GMT 2000


> Here is what happens when I run test.cc:

This is likely not a compiler bug. Try running the following C program

int main()
{
  char *p=malloc(0x10000000);
  if(p)
    printf("PASS\n");
  else
    printf("FAIL\n");
}

If it fails, you simply cannot allocate 256M on your machine; then
there is nothing the compiler can do about it.

Regards,
Martin



More information about the Gcc-help mailing list