Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!iuvax!bobmon
From: bobmon@iuvax.cs.indiana.edu (RAMontante)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Processor Stack/Turbo C
Keywords: Stack Size/Turbo C
Message-ID: <12836@iuvax.cs.indiana.edu>
Date: 18 Sep 88 15:51:10 GMT
References: <3567@druhi.ATT.COM> <12769@iuvax.cs.indiana.edu> <3013@pt.cs.cmu.edu>
Reply-To: bobmon@iuvax.UUCP (RAMontante)
Organization: malkaryotic
Lines: 28

ralf@b.gp.cs.cms.edu sez:
>}The variable _stklen is defined in dos.h as
>}	extern unsigned _stklen;
>}
>}It defaults to 4K words; the minimum is 128 words.  You choose your size by
>
>4K *bytes*, minimum is 256 bytes.  Maximum is 64K bytes, so the below WILL NOT
>WORK.

Thank you.  I was using the manual's terms, and it states a 128 word
minimum.  Then when it says "The default stack size is 4K." it doesn't
say whether it's talking words or bytes, and I just assumed it was
using consistent units.  (Actually, I've only used this when I wanted
more stack, and I just automatically specify bytes; the minimum is
beneath me, so to speak.)

>}	_stklen = 1048576;	/* or whatever size you want... */

Sorry 'bout that, I should have put a smiley here.  This was meant to be
an absurdly large number.  Haven't you ever wanted to devote your
entire address space to the stack?  :-)  (BTW:  I *did* give this value
in bytes.  Okay, so some of you have more address space than 1 Meg.
Phfffffft.)

Write-protect smileys.  Apply as needed --> :-) 8-) :*) :-> :-/ X-) :-) :-)
-- 
--    bob,mon			(bobmon@iuvax.cs.indiana.edu)
--    "Aristotle was not Belgian..."	- Wanda