Thread overview
stack pragma
Jul 02, 2002
Gisle Vanem
Jul 02, 2002
Jan Knepper
Jul 02, 2002
Walter
Jul 02, 2002
Larry Brasfield
July 02, 2002
Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC.

Gisle V.

July 02, 2002
-s switch turns it on, no -s switch leaves it off.



Gisle Vanem wrote:

> Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC.
>
> Gisle V.

July 02, 2002
You can also check the stack for an individual function by calling _chkstack() upon function entry. -Walter

"Jan Knepper" <jan@smartsoft.cc> wrote in message news:3D21A73A.3A44D55A@smartsoft.cc...
> -s switch turns it on, no -s switch leaves it off.
>
>
>
> Gisle Vanem wrote:
>
> > Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC.
> >
> > Gisle V.
>


July 02, 2002
In article <3D21A73A.3A44D55A@smartsoft.cc>, Jan Knepper (jan@smartsoft.cc) says...

[Is there any #pragma for turning on/off stack-checking?]

> -s switch turns it on, no -s switch leaves it off.

Did this ever check for stack overflow as opposed
to doing a stack probe?  I've got a threading
system where it is advantageous (and prudent) to
rewrite the stack overflow checker, but I have not
been able to get it called using -s.

-- 
-Larry Brasfield
(address munged, s/sn/h/ to reply)