home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / compiler / 1501 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!uakari.primate.wisc.edu!ames!sun-barr!rutgers!faatcrl!iecc!compilers-sender
  2. From: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup)
  3. Newsgroups: comp.compilers
  4. Subject: Re: -O4 in SunOS compiler
  5. Keywords: C, optimize
  6. Message-ID: <92-09-020@comp.compilers>
  7. Date: 1 Sep 92 16:55:28 GMT
  8. References: <92-08-164@comp.compilers>
  9. Sender: compilers-sender@iecc.cambridge.ma.us
  10. Reply-To: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup)
  11. Organization: Sun MegaSystems
  12. Lines: 26
  13. Approved: compilers@iecc.cambridge.ma.us
  14.  
  15. jb3o+@andrew.cmu.edu (Jon Allen Boone) writes:
  16.  
  17.    What does the -O4 switch do to the SunOS compiler?
  18.  
  19. Helps to be more precise about the version of the compiler in
  20. question.
  21.  
  22.                     4    Same as -O3, but trace  the  effects  of
  23.                          pointer   assignments,  gather  aliasing
  24.                          information, do  parameter  propagation,
  25.                          and perform inlining.
  26.  
  27. is the text in C1.1. 
  28.  
  29. By tracing the effects of pointer assignments it is sometimes
  30. possible to perform "f77 style" optimizations.
  31.  
  32. The inlining works when the caller and the callee are in the same file
  33. and a variety of heuristics regarding the expansion are satisfied.
  34. --
  35. Keith H. Bierman    keith.bierman@Sun.COM| khb@chiba.Eng.Sun.COM
  36. SunPro 2550 Garcia MTV 12-33             | (415 336 2648) fax 964 0946
  37. Mountain View, CA 94043
  38. -- 
  39. Send compilers articles to compilers@iecc.cambridge.ma.us or
  40. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  41.