This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]