From owner-freebsd-current Sat Feb 8 21: 0:58 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 4242C37B401 for ; Sat, 8 Feb 2003 21:00:57 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8CAB43F75 for ; Sat, 8 Feb 2003 21:00:56 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h1950jMZ045884; Sat, 8 Feb 2003 23:00:45 -0600 (CST) (envelope-from dan) Date: Sat, 8 Feb 2003 23:00:45 -0600 From: Dan Nelson To: Conrad Sabatier Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <20030209050045.GD5356@dan.emsphone.com> References: <20030208173756.GA56030@arkadia.nv.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i 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 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. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message