This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
change to gcc from lcc
- From: Anna Sidera <eep6sa1 at ucy dot ac dot cy>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 14 Nov 2008 11:09:22 +0200
- Subject: change to gcc from lcc
Hello,
The following code works in lcc in windows but it does not work in gcc in unix. I think it is memory problem. In lcc there is an option to use more temporary memory than the default. Is there something similar in gcc?
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int i, j;
int buffer1[250][1000000];
for (i=0; i<250; i++) {
for (j=0; j<1000000; j++) {
buffer1[i][j]=0;
}
}
printf("\nThe program finished successfully\n");
return 0;
}
Many Thanks,
Anna