Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!apple!bloom-beacon!mit-eddie!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: setjmp/longjmp question Message-ID: <8967@alice.UUCP> Date: 25 Feb 89 17:29:46 GMT References: <8514@polyslo.CalPoly.EDU> Distribution: na Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 12 In article <8514@polyslo.CalPoly.EDU>, ttwang@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@europa.att.com