home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4223 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.1 KB  |  53 lines

  1. 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
  2. From: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Setjmp/longjmpOptimization
  5. Message-ID: <KHB.92Sep14172727@chiba.Eng.Sun.COM>
  6. Date: 14 Sep 92 22:27:27 GMT
  7. References: <1992Sep14.152636.18396@fripp.ri.cadre.com>
  8. Organization: Sun MegaSystems
  9. Lines: 40
  10. NNTP-Posting-Host: chiba
  11. In-reply-to: umn@cadre.com's message of 14 Sep 92 15:26:36 GMT
  12.  
  13.  
  14. In article <1992Sep14.152636.18396@fripp.ri.cadre.com> umn@cadre.com (Uttam M. Narsu) writes:
  15.  
  16.    In the past we have had a number of problems with Sun's optimizer
  17.    and our use of setjmp/longjmp to handle exceptions.  The problem was 
  18.    particularly nasty since many of the longjmps would work just fine, but
  19.    we would see crashes on some of them.
  20.  
  21. A quick look at the bugs database doesn't include an entry from you or
  22. your organization regarding setjmp/longjmp.
  23.  
  24. "correct" use of the header files results in (see machine/setjmp.h)
  25.  
  26.  * since a call to a routine that calls resume/longjmp will eventually
  27.  * return at the setjmp site, not the original call site.  This
  28.  * utterly wrecks control flow analysis.
  29.  */
  30. #pragma unknown_control_flow(sigsetjmp, setjmp, _setjmp)
  31.  
  32. being included ... which makes much of the optimizer "go to sleep"
  33. that is to say, use of setjmp/longjmp adversely impacts performance.
  34. Quite significantly.
  35.  
  36. Note that it may be necessary to load the "sys" category during
  37. installation (that changed sometime ago).
  38.  
  39. A quick look through the bug database has no references to anything
  40. such as described above, open at this time (C1.1 which is the name for
  41. a particular release of the unbundled C compiler).
  42.  
  43. If anyone has examples of where this is broken, please send them to
  44. me.
  45.  
  46.  
  47.  
  48. --
  49. ----------------------------------------------------------------
  50. Keith H. Bierman    keith.bierman@Sun.COM| khb@chiba.Eng.Sun.COM
  51. SunPro 2550 Garcia MTV 12-33             | (415 336 2648) fax 964 0946
  52. Mountain View, CA 94043  <speaking for myself, not Sun*> Copyright 1992
  53.