Summary of setjmp/longjmp responses
Tue, 22 Feb 1994 20:00:11 GMT

          From comp.compilers

Related articles
setjmp/longjmp implementations (1994-02-16)
Summary of setjmp/longjmp responses (1994-02-17)
Re: Summary of setjmp/longjmp responses (1994-02-18)
Re: Summary of setjmp/longjmp responses (1994-02-18)
Summary of setjmp/longjmp responses (1994-02-22)
| List of all articles for this month |

Newsgroups: comp.compilers
Keywords: C
Organization: Compilers Central
References: 94-02-117 94-02-097
Date: Tue, 22 Feb 1994 20:00:11 GMT

  > Thanks to those who responded re my setjmp/longjmp questions. ...
  > 1. No commonly used benchmarks depend upon setjmp/longjmp performance.
  > [If this is so, I'm amazed that setjmp/longjmp work at all! :-). ]

Given that the main loop of every shell I've ever seen includes a
setjmp call, and error situations are handled by longjmp'ing to the
setjmp'ed address, I would say it would become pretty obvious that
setjmp/long jmp wasn't working. It just doesn't have to work FAST.

Note on some systems, longjmp has to do a system call (typically
_sigreturn) in order to allow longjmp's from signal handlers to work
(the _sigreturn would clear out signal state).

Michael Meissner email: phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.