TurboC 1.5 Stack check

RAMontante bobmon at iuvax.cs.indiana.edu
Fri Aug 5 09:55:35 AEST 1988


The following is a W-AG.  Kind corrections appreciated...

cprintf, being a "console" printf, is going directly to the hardware.  All
the code is TC-generated, so when the stack finally overflows your program
knows about it and the error-handling code succeeds.

printf uses operating-system (BIOS) calls.  Either by coincidence or for
some fundamental reason, your stack finally dies while BIOS code is
executing.  There's no way TC code could know about or cleanup after this,
and the BIOS doesn't have very sophisticated stack-error handling.  So it
dies.  You couldn't get to a reliable DOS prompt; DOS has died.
-- 
-- bob,mon				(bobmon at iuvax.cs.indiana.edu)
-- "half-witted:  it's better than no wits at all."



More information about the Comp.lang.c mailing list