Turbo C stack control

MARK FREEDMAN mark.freedman at canremote.uucp
Sun Feb 4 11:17:00 AEST 1990


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 at canremote.uucp
---
 ~ DeLuxe 1.11a20 #4219



More information about the Comp.lang.c mailing list