Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!styx!twg-ap!amdahl!hplabs!pesnta!amd!amdcad!amdimage!prls!philabs!linus!raybed2!applicon!hdsvx1!hoffman From: hoffman@hdsvx1.UUCP (Richard Hoffman) Newsgroups: net.lang.c Subject: Re: Optimizing C compilers, and their use... Message-ID: <498@hdsvx1.UUCP> Date: Sun, 7-Sep-86 16:36:04 EDT Article-I.D.: hdsvx1.498 Posted: Sun Sep 7 16:36:04 1986 Date-Received: Sun, 14-Sep-86 03:31:50 EDT References: <1184@uw-june> Reply-To: hoffman@hdsvx1.UUCP (Richard hoffman) Organization: Schlumberger HDS, Houston Lines: 26 In article <1184@uw-june> bnfb@uw-june (Benson) writes: >All the time, on the net, in casual conversation, in literature and >especially in discussions of the forthcoming C Language Standard, I have >heard the statement: > "You can allow/do/write because any > decent optimizing compiler will fix/compile it." >My question is: > How many of you who say this (or even just how many of you > on the net) have an optimizing C compiler? And how many of > those actually use them? If one develops programs on VMS, each compiler has an optimizer, and optimized output is the default (at least, this is true for the compilers I use -- FORTRAN, C, PL/I -- I assume it's true for most of the other major languages DEC supports). Also, every IBM compiler I ever worked with had an optimizer, and typically the last step before releasing a program was to run it through the optimizer. So I would imagine that probably the majority of programs are compiled these days with an optimizing compiler, whether the optimizer is used or not. Nevertheless, unless one is intimately familiar with the sorts of optimization that the compiler does, it makes sense to clean up one's one mess to the best extent possible. -- Richard Hoffman | "Oh life is a wonderful cycle of song, Schlumberger Well Services | A medley of extemporanea. hoffman%hdsvx1@slb-doll.csnet | And Love is a thing that can never go wrong PO Box 2175, Houston, TX 77252 | ... And I am Marie of Roumania." --D. PARKER