This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc_increase_max_array_size
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: Rolf Norrestam <rolf dot norrestam at telia dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Apr 2007 18:06:14 +0100
- Subject: Re: gcc_increase_max_array_size
- References: <462E48FE.7020503@telia.com>
Rolf Norrestam writes:
> Hello 070424
> With a rather standard installation of fedora 6 it appears that when
> using gcc the maximum size of a c array is 524288.
I'd be interested to kow why you believe that.
> Is there any simple way (as changing any conf file) to increase
> that array size limitation by a factor of say 4, without having to
> substantially rewrite the c code?
This limitation does not exist. I don't understand why you think it
does. The only real limit, apart from the amount of memory you have
installed, is stack size: I presume you're not trying to create a huge
array on the stack.
Andrew.