X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Tue, 23 Apr 2013 23:24:06 -0500 From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp References: <201304061704 DOT r36H4k48018021 AT delorie DOT com> <3728e704-b839-4ad6-998e-d3aab686b649 AT googlegroups DOT com> Subject: Re: ANNOUNCE: DJGPP port of GNU binutils 2.23.2 - stack size Date: Tue, 23 Apr 2013 23:23:57 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Message-ID: Lines: 18 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 64.91.136.221 X-Trace: sv3-eD2e92bvlWaOzccBUkmnmzlucBOB6KNCtDYUs9vk0fuTh8LAqFMQqe4dEvy0CZL5vqP1KdDLlVMhS/G!fK6jsHK6TeI1vQB3GxxcQ+4I/t22meUiGXfB+3YkWYtrL3yruhkHZHrqj5St5CUayAj/dLMLKH9e!DXjBalVevX3ww+iSBLe7iocIT4tyEH4q X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 1936 X-Original-Bytes: 1875 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >> Isn't possible to use dynamic allocation instead >> hardcoding to 10MB or anything else? > > Dunno, probably the best person to ask would be CWS. The issue is memory layout. In a real OS you can have sparse memory allocation; so the stack can grow down from the top of the address space (like 0x7ffc000 down) while the image and malloc() data grow up (from like 0x4000). Since DPMI 0.9 provides only "ask for size and you get an address" type allocation, we have to use a fixed stack size. With a full DPMI 1.0 host (or under DJGPP 1.x) you could have an expand down stack that would grow and fault in new pages.