Date: Wed, 5 Jan 2000 11:16:42 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: leon cc: djgpp AT delorie DOT com Subject: Re: Array crashes my program! In-Reply-To: <3872B826.B7C010E@caresystems.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 5 Jan 2000, leon wrote: > Now in modern systems (well > ala win95) i don't think it is an issue as every program works in virtual > space - but since we are tralking about comiling dos programs This issue has nothing to do with DJGPP programs being DOS programs. Almost every modern environment has some limitation on the stack size. It is true that most of other environments put the limitation higher than DJGPP does, but typically, it is unwise to use up more than, say, 2MB of stack space, in any environment. DJGPP uses a smaller stack by default because, due to limitations of the DPMI spec, the stack must be allocated all at once during startup, and it isn't nice to eat up several MBs of the address space just for those rare cases that want to define humongous local arrays... FWIW, the absolute majority of ``normal'' programs use much less than 256KB of stack.