Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Feb 2003 23:10:32 -0600 (CST)
From:      Conrad Sabatier <conrads@cox.net>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-current@FreeBSD.ORG, Ray Kohler <ataraxia@cox.net>
Subject:   Re: Compiling with high optimization?
Message-ID:  <XFMail.20030208231032.conrads@cox.net>
In-Reply-To: <20030209050045.GD5356@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <conrads@cox.net> - "In Unix veritas"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030208231032.conrads>