This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem with large arrays
- From: apaz at purdue dot edu
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 6 Jul 2005 22:38:08 -0500
- Subject: problem with large arrays
Could you please tell me how can I work with large arrays in C/Objective-C. My
compiler (gcc) can not handle, for example, the following array
a[15][150][9][197], which is not too big. If I reduce the size to
a[15][150][9][19], for example, it works ok. I had prepared a small example to
show the problem and it's in the attachment. Finally, I have the problem with
both Linux and cygwin.
Thank you very much,
Alex
#include <stdio.h>
int main()
{
int matrixab[15][150][9][197];
matrixab[1][1][9][1]=5;
printf("%i \n", matrixab[1][1][9][1]);
return 0;
}