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

Reply via email to