This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Arrays size with gcc compiler
- From: Laurent Pinchart <laurent dot pinchart at capflow dot com>
- To: fuensm at sun dot leeds dot ac dot uk
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 01 Mar 2002 11:23:38 +0100
- Subject: Re: Arrays size with gcc compiler
- References: <000501c1c29c$cf95eb00$e8840b81@derant5>
- Reply-to: laurent dot pinchart at capflow dot com
>
>
>Apparently the compiler is quite limited in terms of the
>of the size of the arrays that I use. For
>Example I cannot use matrices (double variables)
>Larger than 1000 X 1000. Things are ven worst when
>I use 3 or multidimensional arrays.
>
How do you declare your variables ? If they are local variables,
allocated on the stack, then you are limited by the stack size. You
should rather explicitely malloc() and free() your arrays.
Laurent Pinchart