Path: utzoo!attcan!ncrcan!becker!censor!comspec!tvcent!lethe!torsqnt!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!ogicse!plains!bakke From: bakke@plains.UUCP (Jeffrey P. Bakke) Newsgroups: comp.sys.ibm.pc Subject: Re: How to set the stack size Message-ID: <4549@plains.UUCP> Date: 7 May 90 03:51:39 GMT References: <1990May5.233110.16060@cs.umn.edu> <1681@krafla.rhi.hi.is> Reply-To: bakke@plains.UUCP (Jeffrey P. Bakke) Organization: North Dakota State University, Fargo Lines: 19 In article <1681@krafla.rhi.hi.is> frisk@rhi.hi.is (Fridrik Skulason) writes: >In article <1990May5.233110.16060@cs.umn.edu> swie@cs.umn.edu (S. T. Tan) writes: >>Could anybody tell me how to modify the stack size in Turbo C 2.0 ? > >Add a statement like this one to your code: > > extern unsigned int _stklen = 15000; > You might also want to think about moving up another memory model. If your compiling in say, small model, you're limited to 64K maximum for stack+data+code. Whereas in say a huge model (please, there's probably a happy medium for you) you get up to 1Meg stack+data+code (that is to say the theoretical addressable size). Something other than small, prehaps `the compact or medium model is what you should look at. Jeffrey P. Bakke | Internet: bakke@plains.NoDak.edu | "Life, don't talk 2550 15th Str S #23B | UUCP : ...!plains!bakke | to me about life..." Fargo, ND 58105 | BITNET : bakke@plains | - Marvin