X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Tom Kent" Newsgroups: comp.os.msdos.djgpp Subject: Re: Max array size Date: Thu, 6 Dec 2001 13:08:02 -0600 Organization: Iowa State University, Ames, Iowa, USA Lines: 33 Message-ID: <9uofkr$692$1@news.iastate.edu> References: NNTP-Posting-Host: teeks99x.stures.iastate.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks to all. It works now. I just have to run the command: stubedit finder.exe minstack=4194304 that makes the stack 4MB instead of 512KB Thanks! Tom Kent :-D "Eli Zaretskii" wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1011206094749 DOT 15950J-100000 AT is... > > 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.