[comp.lang.c] Turbo C stack control

mark.freedman@canremote.uucp (MARK FREEDMAN) (02/04/90)

bS>Question: In Turbo C, how can you tell how much stack you have left?
bS>Is there a variable that contains that information?  If you find that
bS>there is some conflict or your margins are getting close, how can you
bS>open up some more stack space?  References to stack in the index
bS>don't seem to point to anything along this line of questioning.

   I suggest turning on stack overflow checking (Options / Compiler/
Code Generation) to determine if that's the problem. This option is
described on page 119 of the User's guide. I'm sure that the command
line compiler has a similar option.

   The stack size is set by the global _stklen, described on p. 30 of
the Reference Guide. It defaults to 4K.

mark.freedman@canremote.uucp
---
 ~ DeLuxe 1.11a20 #4219