Hi,
while using Eclipse on a Mac (2GB RAM) i have encountered the following problem: whenever i try to create an array which exceeds 8384896 bytes, i get segmentation faults. The following program would execute:
#include <stdio.h>
main()
{
double x[1048112];
printf("sizeof(x) = %li", sizeof(x));
}
and the output would be (as expected):
sizeof(x) = 8384896
But increasing the number of elements in x or creating additional variables in main() would result in an unexecutable program and segfaults. It looks like I'm hitting some memory limit and I dont understand why this is happening. I'd be really grateful if anyone could explain this to me, or maybe provide some sort of solution to my problem.