home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!wotan.compaq.com!moxie!texsun!cronkite.Central.Sun.COM!news2me.ebay.sun.com!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!appserv!khb
- From: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Setjmp/longjmpOptimization
- Message-ID: <KHB.92Sep14172727@chiba.Eng.Sun.COM>
- Date: 14 Sep 92 22:27:27 GMT
- References: <1992Sep14.152636.18396@fripp.ri.cadre.com>
- Organization: Sun MegaSystems
- Lines: 40
- NNTP-Posting-Host: chiba
- In-reply-to: umn@cadre.com's message of 14 Sep 92 15:26:36 GMT
-
-
- In article <1992Sep14.152636.18396@fripp.ri.cadre.com> umn@cadre.com (Uttam M. Narsu) writes:
-
- In the past we have had a number of problems with Sun's optimizer
- and our use of setjmp/longjmp to handle exceptions. The problem was
- particularly nasty since many of the longjmps would work just fine, but
- we would see crashes on some of them.
-
- A quick look at the bugs database doesn't include an entry from you or
- your organization regarding setjmp/longjmp.
-
- "correct" use of the header files results in (see machine/setjmp.h)
-
- * since a call to a routine that calls resume/longjmp will eventually
- * return at the setjmp site, not the original call site. This
- * utterly wrecks control flow analysis.
- */
- #pragma unknown_control_flow(sigsetjmp, setjmp, _setjmp)
-
- being included ... which makes much of the optimizer "go to sleep"
- that is to say, use of setjmp/longjmp adversely impacts performance.
- Quite significantly.
-
- Note that it may be necessary to load the "sys" category during
- installation (that changed sometime ago).
-
- A quick look through the bug database has no references to anything
- such as described above, open at this time (C1.1 which is the name for
- a particular release of the unbundled C compiler).
-
- If anyone has examples of where this is broken, please send them to
- me.
-
-
-
- --
- ----------------------------------------------------------------
- Keith H. Bierman keith.bierman@Sun.COM| khb@chiba.Eng.Sun.COM
- SunPro 2550 Garcia MTV 12-33 | (415 336 2648) fax 964 0946
- Mountain View, CA 94043 <speaking for myself, not Sun*> Copyright 1992
-