5 msgput the process running in background
3 msgInstaling Gcc on Linux SLACKWARE
4 msghow is the eh_frame section used?
2 msgreordering-of-passes

gcc_increase_max_array_size
\ Rolf Norrestam (24 Apr 2007)
. \ Andrew Haley (24 Apr 2007)
. \ Michael Eager (24 Apr 2007)

6 msgresult type of an operation betweem signed and ...
2 msgLibjava.so
1 msgUsing __restrict__ on a class member variable
5 msgproblems with plotutils/libplot and windows 200...
7 msgDefault gcc tuning?
1 msgExclude function from gcov analysis
8 msgForcing inline assembly code to be produced
2 msgStrange behaviour of gcc on my 64-bit Pentium C...
2 msgOld -v behavior, display active -D defines
2 msgmmintrin slower than inline asm or even plain C
1 msgStandard Conformance with GCC and the C++ 2003 ...
1 msgautovectorization in gcc
2 msg-finline and ISRs
2 msgdifferent output location for targets?
8 msgIs libc built by gcc?
Subject:Re: gcc_increase_max_array_size
Group:Gcc-help
From:Michael Eager
Date:24 Apr 2007


Rolf Norrestam wrote:
> 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. 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?

Gcc doesn't have a size limit for arrays. But you may be
exceeding the size limit for the stack.

You may want to use dynamic allocation:
object * array = malloc (sizeof(object) * count);
instead of allocating on the stack.

--
Michael Eager eager
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077


© 2004-2008 readlist.com