From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: Fixed stack size? Date: Tue, 17 Aug 1999 18:11:17 Organization: Aspen Technology, Inc. Lines: 12 Message-ID: <37b9a5c5.sandmann@clio.rice.edu> References: NNTP-Posting-Host: athena.aco.aspentech.com X-NewsEditor: ED-1.5.8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com There is a more generic "fix" for the stack overflow. Make the SS selector have an expand down limit and be different from DS. This was the way it was done in DJGPP V1.x by the way, but breaks using -fomit-frame-pointer since EBP can't be a generalize offset since it is based on SS. There are actually hooks/pieces in the V2 code to turn on an option to do this (the entire DS_ALIAS stuff gets hacked). Time to implement it completely ran out (as did interest). This is the way that automatic stack expansion was also going to be done (catch the signal, fix the arena, resume).