www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/12/09:26:42

Date: Mon, 12 Feb 1996 16:13:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
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).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019