home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4213 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!uwm.edu!ogicse!cadreor!fripp!cadre.com!umn
  2. From: umn@cadre.com (Uttam M. Narsu)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Setjmp/longjmpOptimization
  5. Message-ID: <1992Sep14.152636.18396@fripp.ri.cadre.com>
  6. Date: 14 Sep 92 15:26:36 GMT
  7. Sender: usenet@fripp.ri.cadre.com (USENET News Poster Account)
  8. Organization: Cadre Technologies Inc.
  9. Lines: 16
  10. Nntp-Posting-Host: 192.9.200.168
  11.  
  12. In the past we have had a number of problems with Sun's optimizer
  13. and our use of setjmp/longjmp to handle exceptions.  The problem was 
  14. particularly nasty since many of the longjmps would work just fine, but
  15. we would see crashes on some of them.
  16.  
  17. However, with the Sun 4.1.2 compiler, things seem to have improved. But how can I know for sure without testing every branch path?  So: does anyone know if
  18. Sun's optimizer correctly handles setjmp/longjmpcode?
  19.  
  20. Also, are there any other gotchas when using the levels -O2 to -O4 (besides
  21. what is in the man page)?
  22.  
  23.  
  24. Uttam M. Narsu            EMAIL:    umn@cadre.com
  25. c/o Cadre Technologies Inc    TEL:    (401) 351-5950
  26. 222 Richmond St.        FAX:     (401) 351-7380
  27. Providence, RI  02906
  28.