Date: Tue, 11 Sep 2001 17:07:06 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: Bruce Evans <bde@zeta.org.au> Cc: "Brian F. Feldman" <green@FreeBSD.org>, Mark Murray <mark@grondar.za>, Peter Wemm <peter@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_prf.c src/sys/sys systm.h Message-ID: <20010911170706.A22997@kayak.xcllnt.net> In-Reply-To: <20010912002041.J5036-100000@delplex.bde.org> References: <200109101458.f8AEwQI98441@green.bikeshed.org> <20010912002041.J5036-100000@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 12, 2001 at 12:30:50AM +1000, Bruce Evans wrote: > On Mon, 10 Sep 2001, Brian F. Feldman wrote: > > > Mark Murray <mark@grondar.za> wrote: > > > > This hack brought to you by some questionable ``optimizations'' in gcc-3. > > > > gcc-3 takes it apon itself to convert: > > > > printf("string\n") -> puts("string"); > > > > and: > > > > printf("a"); -> putchar('a') > > > > etc. I dont know what they've been smoking over there in gcc-land, but > > > > it must be pretty good stuff. > > > > > Disagreed. This seems like a normal optimization to me. It's like > replacing strlen("foo") by 3. None of the so called optimizations are normal in that normally you optimize those parts of the program where you have the largest gain for the least amount of effort. Replacing strlen("foo") by 3 only marginally makes more sense. In any case, I don't believe that GCC is at a point where all the big/significant optimizations have been implemented, so I fail to see how these optimizations make the code better. I don't see value in the fact that my scientific program may be twice as slow as the competition, but at least the result is printed 7 clocks earlier. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010911170706.A22997>