Date: Mon, 12 Feb 1996 16:13:17 +0200 (IST) From: Eli Zaretskii To: "A.Appleyard" Cc: djgpp AT delorie DOT com Subject: Re: Limited djgpp stack size On Mon, 12 Feb 1996, A.Appleyard wrote: > > DJGPP v2.0 limits the stack at 256KB by default. ... You can enlarge the > > default stack by using STUBEDIT or by setting _stklen global variable. ... > > extern unsigned _stklen = 1048576; Setting _stklen makes sure your program > > always works, but wastes memory, since the 256K stack originally allocated > > must be discarded ... > > That seems fiddly after the automatic unlimited stack size in the old djgpp > (and in very many computer language compilers from very old mainframe days). > When will this nuisance be cured? You cannot have unlimited stack under DPMI, that's a limitation of DPMI spec. DJGPP 1.12 has the same limitation when it runs under DPMI (it even is mentioned in the FAQ). You can enlarge this value as needed by editing the stub with STUBEDIT (also explained in the FAQ).