From owner-freebsd-current Sat Mar 18 13: 3:27 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 99CEC37B641 for ; Sat, 18 Mar 2000 13:03:17 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: (qmail 30917 invoked from network); 18 Mar 2000 21:03:15 -0000 Received: from acs-63-85-133-249.cvzoom.net (HELO cvzoom.net) (63.85.133.249) by ns.cvzoom.net with SMTP; 18 Mar 2000 21:03:15 -0000 Message-ID: <38D3EEFC.FD0E5C5D@cvzoom.net> Date: Sat, 18 Mar 2000 16:02:52 -0500 From: Donn Miller X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: obrien@FreeBSD.ORG Cc: Thomas =?iso-8859-1?Q?K=F6llmann?= , R Joseph Wright , freebsd-current@FreeBSD.ORG Subject: Re: gcc -Os optimisation broken (RELENG_4) References: <20000317125045.A15480@schumann.cx> <20000318031845.A1816@home.net> <20000318110022.A60879@dragon.nuxi.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David O'Brien wrote: > > On Sat, Mar 18, 2000 at 03:18:45AM +0100, Thomas Köllmann wrote: > > If it doesn't I'll probably try `-03 -pipe -march=pentium' come next > > What are people hoping to get by doing this? Are you actually doing a > scientific performance evaluation between the various optimization > options??? Are are people just being macho, and thinking they are > getting all this non-existent performance increase? It's probably more of a "placebo effect", which makes you think your are getting a big boost in performance. I'll admit that I've never seen a whole order or magnitude increase in performance between -O and -mpentium-O3, or whatever - it probably gives you boosts here and there. Optimization is pretty good, as I've found out, with plain-jane -O. Beyond that, I think your performance gains are minimal. And yes, I think it's really macho to be usin' hopped-up CFLAGS, like -march=pentium -Os -pipe. I feel really studly doing this. :-) We should do a survey, and find out what the guys use for CFLAGS and COPTFLAGS and compare them to what the female users are using. That would be interesting. I don't know, -O seems to be doing some pretty decent optimization, from what I've seen of the assembler output. I guess you're right in that all higher optimization are prividing marginal performance gains. From what I gather, the i386 arch. is not very sensitive to optimization from gcc. You'll see minor boosts here and there, but that's about it. Typically, guys that are diehard football fans like to use -mpentium -O3 -pipe for building world and kernel. - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message