home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19751 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!gatech!hubcap!ncrcae!elcaro1.ColumbiaSC.NCR.COM!mahesh
  3. From: mahesh@elcaro1.ColumbiaSC.NCR.COM (Mahesh Zambani)
  4. Subject: Re: Optimized C++ library
  5. Message-ID: <1993Jan22.091616.29891@ncrcae.ColumbiaSC.NCR.COM>
  6. Nntp-Posting-Host: elcaro1.columbiasc.ncr.com
  7. Reply-To: mahesh@elcaro1.columbiaSC.NCR.COM
  8. Organization: NCR Corp., Columbia
  9. References: <1jng9aINN39s@male.EBay.Sun.COM> <1jofijINNm8o@rs2.hrz.th-darmstadt.de>
  10. Date: Fri, 22 Jan 93 14:16:15 GMT
  11. Lines: 30
  12.  
  13. In article <1jofijINNm8o@rs2.hrz.th-darmstadt.de>, schrod@iti.informatik.th-darmstadt.de (Joachim Schrod) writes:
  14. |> In article <1jng9aINN39s@male.EBay.Sun.COM>, pauln@loopkill.EBay.Sun.COM (Paul Nguyen) writes:
  15. |> > 
  16. |> > We have an application that runs OK when all the libraries were compiled with the
  17. |> > -g option.  But when the libraries were re-compiled with -O for optimization.  The
  18. |> > application seems to crash randomly in one of the library.
  19. |> > 
  20. |> > Is it possible that compiling with -O uncovered a bug?
  21. |> 
  22. |> Yes, in the compiler. Might be that you use the CC of Sun? (0.5 :-)
  23. |> 
  24. |> --
  25. |> Joachim
  26.  
  27.     I had the same problem on HP9000/700 and SCO V3.2. But I discovered 
  28. that only few source files were problematic. By compiling these without
  29. -O flag and compiling rest of the files with optimization, my application
  30. ( quite a big size ) worked correctly.
  31.     Off course, this depends on how many man hours you are ready to spend
  32. to save a few cpu (micro)seconds!! :-)
  33.  
  34. - Mahesh
  35.  
  36. -- 
  37.  
  38. Mahesh Zambani                                mahesh@elcaro1.ColumbiaSC.NCR.COM
  39.  
  40. NCR MCPD , Columbia,SC 29170                  hello: off #803-791-6915
  41.                              res #803-750-1863
  42. _____________________________________________________________________________
  43.