From: ams AT ludd DOT luth DOT se (Martin Str|mberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: Fixed stack size? Date: 25 Jul 1999 08:38:51 GMT Organization: University of Lulea, Sweden Message-ID: <7neier$1mh$6@news.luth.se> References: NNTP-Posting-Host: queeg.ludd.luth.se X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote: : : On 23 Jul 1999, Martin Str|mberg wrote: : : > Why is the stack size fixed? Can't it be allocated dynamically? : : I'm not sure I understand all the subtle aspects of this, but one : problem is that the stack sits between .bss and the heap, so : expanding it would require to move the heap around. (The heap clearly : requires expanding, so it's placed last.) Ah... But why isn't it placed as high as possible so it can grow down (as it usually does in Un*x)? Kokkonen, Sinfonia da camera, MartinS