From owner-freebsd-current Sat Feb 8 21: 8:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A63AE37B401 for ; Sat, 8 Feb 2003 21:08:35 -0800 (PST) Received: from ip68-14-60-78.no.no.cox.net (ip68-14-60-78.no.no.cox.net [68.14.60.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id C780643FBD for ; Sat, 8 Feb 2003 21:08:34 -0800 (PST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: from ip68-14-60-78.no.no.cox.net (localhost [127.0.0.1]) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6) with ESMTP id h195AcIP017927; Sat, 8 Feb 2003 23:10:38 -0600 (CST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: (from conrads@localhost) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6/Submit) id h195AXRw017926; Sat, 8 Feb 2003 23:10:33 -0600 (CST) Message-ID: X-Mailer: XFMail 1.5.3 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030209050045.GD5356@dan.emsphone.com> Date: Sat, 08 Feb 2003 23:10:32 -0600 (CST) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: Conrad Sabatier To: Dan Nelson Subject: Re: Compiling with high optimization? Cc: freebsd-current@FreeBSD.ORG, Ray Kohler Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-Feb-2003 Dan Nelson wrote: > In the last episode (Feb 08), Conrad Sabatier said: >> Call me a fool, but I've been using this for quite some time now, in both >> -stable (well, with slight modifications) and -current: >> >> CPUTYPE?=k7 >> >> CFLAGS= -O2 -pipe -mmmx -m3dnow -fforce-mem -fforce-addr -fstrength-reduce \ >> -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \ >> -fexpensive-optimizations -fschedule-insns2 > > Have you actually tested the benefits of these switches? If you had, > you would have discovered that -fforce-mem, -fstrength-reduce, > -fthread-jumps, -fcse-follow-jumps, -fcse-skip-blocks, > -frerun-cse-after-loop, > -fexpensive-optimizations, and -fschedule-insns2 do absolutely nothing, since > -O2 enables them anyway. -fforce-addr is the only non-redundant -f flag in > that whole list. Yes, I figured some of them were redundant, but it was kind of hard to figure out which ones, so I just went ahead and used them. :-) -- Conrad Sabatier - "In Unix veritas" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message