Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.sys.ibm.pc Subject: Re: Processor Stack/Turbo C Summary: _stklen Keywords: Stack Size/Turbo C Message-ID: <12769@iuvax.cs.indiana.edu> Date: 16 Sep 88 15:17:51 GMT References: <3567@druhi.ATT.COM> Reply-To: bobmon@iuvax.UUCP (RAMontante) Organization: malkaryotic Lines: 19 terrell@druhi.UUCP (TerrellE) writes: >How does one allocate a larger-than-default processor stack with Turbo C? 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 _stklen = 1048576; /* or whatever size you want... */ There is also a variable _heaplen for controlling heap size. See p.53 of the v1.5 upgrade manual; also mentioned in the read.me file of later copies of v1.0, and I expect it's mentioned in the 2.0 documentation. -- -- bob,mon (bobmon@iuvax.cs.indiana.edu) -- "Aristotle was not Belgian..." - Wanda