Set stack size in TurboC

Shawn Masters smasters at gmuvax2.gmu.edu
Mon Nov 13 03:58:24 AEST 1989


You may want to try not defining it again.  Include the #include
<dos.h>, and then type `_stklen=xxxx'.  The dos.h file should 
have all the declerations taken care of for you, which means, you
just set the variable.  Normally one would think that this would just be
a linker option that you specify at link time, but all of Borland's
manuals seems to state differently.
	Using the "COMPACT" model, you can have a stack upto 64k, which
should satisfy most of your needs. 

Shawn Masters
George Mason University

SMASTERS at GMUVAX2.GMU.EDU



More information about the Comp.lang.c mailing list