Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!sdcsvax!ucsdhub!esosun!seismo!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.unix.wizards Subject: Re: C optimizer Keywords: C pure function optimization Message-ID: <13333@steinmetz.ge.com> Date: 9 Mar 89 14:28:01 GMT References: <515@larry.UUCP> <9648@smoke.BRL.MIL> <36034@bbn.COM> <1028@frog.UUCP> <1464@mcgill-vision.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 15 Our old Heneywell system had a FORTRAN optimizer which would pass over the source code and emit restructured source code with global optimizations performed. The main thing it did was pull things out of loops, I believe, but I haven't used it in ten years or so. Question: has anyone done a similar thing for C? It seems like a reasonable thing to do, given all of the non-optimizing and peephole optimizing compilers in the world. Yes, I know you can do a better job with a builtin optimizer in the compiler, that's NOT the question. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me