On Friday, June 25, 1999 2:12 PM, Alistair Riddoch [SMTP:[EMAIL PROTECTED]] wrote:
: Greg Haerr writes:
: > 
: > 
: > : So form of stack check would be nice, every function call seems a little to
: > : much for a lowly 8086. How about on task switch or even interrupt (or is
: > : this too late)? If the chosen size for the stack is too small, it can be
: > : cured by modifying the binary rather than a full recompile.
: > : 
: > : > Greg
: > 
: > My suggestion is that there would be a compile time option to turn on stack
: > checking.  This would be off for production release.  Then, a user
: > could debug their app, and possibly find that it was stack overflow as why
: > the app failed...
: > 
: 
: Sounds good. Would be implemented by the compiler, or the pre-processor?
: 
        It would be implemented by the compiler, which would emit
a function call to a library routine __chkstack, after every function prologue.

Reply via email to