Mail Archives: djgpp/2001/12/06/02:52:50
On Wed, 5 Dec 2001, Tom Kent wrote:
> I was wondering if there was any maximum array size is. I've been trying to
> compile a program that has an array of floats with dimensions 10,000x16. It
> compiles fine, but then when i go to run it I get an error.
Sounds like you are using an automatic array which is too large for
the run-time stack. See section 15.9 of the DJGPP FAQ list for a
related discussion.
> Because of this I was hypothesizing a potential limitation either with this
> compiler or with DOS.
It's not a DOS limitation, it's a limitation of the DJGPP run-time
environment: the stack is allocated in its entirety at startup, and
cannot be expanded afterwards. So the default stack size is not very
large, only 512KB, so as not to punish ``normal'' programs with too
large memory requirements.
- Raw text -