Core files ... it works

Chris Torek chris at mimsy.UUCP
Tue Jul 5 02:37:07 AEST 1988


In article <551 at philmds.UUCP> leo at philmds.UUCP (Leo de Wit) writes:
>How about using setjmp() and longjmp()? Isn't that a - fairly - portable way
>to get/restores the registers?

Alas, no.  It may not save and restore *any* registers, especially
given the statement in the dpANS that local variables must be declared
`volatile' to get any guarantee from longjmp().
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list