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

next in thread | previous in thread | raw e-mail | index | archive | help
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




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