Stack control

Bob Calbridge bobc at attctc.Dallas.TX.US
Thu Feb 1 15:00:03 AEST 1990


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

My concern is that a program I wrote that is currently 52K prox. under the 
large memory model either goes into a loop or crashes the system under certain
conditions but is not consistant.  It looks like it might be an accumulation
of circumstances that I can't seem to peg.

Thanks,
Bob
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=    More stupid questions available on request from                          =
-     bobc at attctc                     Your humble servant (real humble)       -
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Comp.lang.c mailing list