Xref: utzoo comp.lang.c:23685 comp.sys.ibm.pc:38017 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!sun-barr!newstop!east!garp!var From: var@garp.East.Sun.COM (Var Garapetian, Sun-BOS Hardware [(508)671-0298]) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Set stack size in TurboC Keywords: turbo-C Message-ID: <1004@east.East.Sun.COM> Date: 11 Nov 89 03:16:11 GMT Sender: news@east.East.Sun.COM Reply-To: var@garp.East.Sun.COM (Var Garapetian, Sun-BOS Hardware [(508)671-0298]) Followup-To: comp.lang.c Distribution: na Organization: Sun Microsystems, Billerica MA Lines: 28 Could someone tell me how or direct me to where in the documentation I can find the way to increase the "stack size" in Turbo-C? I am not an expert in C and am using the integrated environment for my programs. I have my compiler set to COMPACT model. A programm I am working on, was causing bizzare behaviour, so I turned the "Stack Overflow" warning on. This indeed showd I was having stack problem. I have been through the TC manuals and have found the _stklen variable which sets the stack size, however don't know how to set it to a larger size. If I type the following before main(): extern unsigned _stklen=6144; It seems to set the stack to a larger value, but the linker gives the following warning: __stklen defined in module GPX.C is duplicated in module STKLEN Any help will be very much appriciated... ============================================================================ Var Garapetian, Sun Microsystems, East-Coast Div. UUCP: {hplabs,ihnp4,ucbvax,decvax,seismo}!sun!vgarapetian or {decvax}!eagle_snax!garp!var ARPA: vgarapetian@east.sun.com GEnie: V.GARAPETIAN ============================================================================