setjmp/longjmp question
Andrew Koenig
ark at alice.UUCP
Sun Feb 26 03:29:46 AEST 1989
In article <8514 at polyslo.CalPoly.EDU>, ttwang at polyslo.CalPoly.EDU (Sir Hoyt) writes:
> What I want to know is the behavior of setjmp/longjmp on other machines.
> Would longjmp() clober all local variables if assuming RISC machine, and
> automatic register allocation?
In ANSI C, longjmp is permitted to clobber all local variables that are
not declared volatile. In earlier C implementations, longjmp tends
to clobber all register variables but leave the rest alone.
--
--Andrew Koenig
ark at europa.att.com
More information about the Comp.lang.c
mailing list