Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Feb 2003 22:01:48 -0600 (CST)
From:      Conrad Sabatier <conrads@cox.net>
To:        Ray Kohler <ataraxia@cox.net>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Compiling with high optimization?
Message-ID:  <XFMail.20030208220148.conrads@cox.net>
In-Reply-To: <20030208173756.GA56030@arkadia.nv.cox.net>

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

On 08-Feb-2003 Ray Kohler wrote:
> Has anyone tried building world/kernel with high optimizations (-O2,
> -O3) recently? What breaks? (Booby prize to whoever says "common sense"
> ;) I last tried it quite a few months ago and the resolver died on me,
> don't know what else. I'm not really thinking of running like that, but
> I am curious about others' experiences.

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

COPTFLAGS= -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

My -current box seems to be remarkably stable (and fast!).  Guess I must be
living right.  :-)

-- 
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.20030208220148.conrads>