Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: Stack size with Turbo-C Keywords: Turbo C,stack,options Message-ID: <1990Dec11.023129.6615@ux1.cso.uiuc.edu> Date: 11 Dec 90 02:31:29 GMT References: <1990Dec9.191647.1474@mlb.semi.harris.com> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 20 routh@eltanin.rtp.semi.harris.com (Kevin Routh x622) writes: >I wondered if Turbo C has any provision for adjusting the stack size. I >have looked through my documentation and can't find an option. This would >be analogous to the Microsoft C linker option /STACK:0x4000. Thanks >for the help. Yes, there is. It is in the form of a global variable called _stklen. In your program, before main(), just say: unsigned _stklen = 64000U; /* 64K stack */ There's probably a .h file you need to #include, but now that you know what you're looking for, I'm sure you can find out which one. --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include