home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12342 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!amorgan
  3. From: amorgan@Xenon.Stanford.EDU (Crunchy Frog)
  4. Subject: Re: Optimizing code for tests
  5. Message-ID: <1992Aug14.200553.3576@CSD-NewsHost.Stanford.EDU>
  6. Sender: news@CSD-NewsHost.Stanford.EDU
  7. Organization: Computer Science Department, Stanford University.
  8. References: <1992Aug12.200303.25050@tin.monsanto.com> <1992Aug14.192350.4786@tin.monsanto.com>
  9. Date: Fri, 14 Aug 1992 20:05:53 GMT
  10. Lines: 17
  11.  
  12. In article <1992Aug14.192350.4786@tin.monsanto.com> bcschu@skws02.monsanto.com (Brett Schultz) writes:
  13. >
  14. >Many of you have also suggested to look for bottlenecks in my program.
  15. >I appreciate the info, but I have already found the bottlenecks and just
  16. >thought that optimized code runs faster than non-optimized code (esp. when
  17. >compiled with debugging info).  
  18.  
  19. Hold on, are you compiling with debugging on?  Most compilers (GCC being
  20. one of the few exceptions) do not do optimization and debugging at the
  21. same time.  Is this your problem?
  22.  
  23. I am not sure what the -j option does, but if the manual says to
  24. use it, use it :-).
  25.   
  26. >Brett
  27.  
  28. C Frog
  29.