Subject: Re: optimizing compilation of netbsd-current
To: Perry E. Metzger <perry@piermont.com>
From: Scott Zahn <scott@xeroxparc.net>
List: netbsd-help
Date: 09/15/2003 10:22:51
On Sun, 14 Sep 2003, Perry E. Metzger wrote:
>
> Scott Zahn <scott@xeroxparc.net> writes:
> > Hey all, I'm in the process of upgrading netbsd 1.6 to netbsd-current on
> > my box. I really want to optimize the binaries I'm compiling.
>
> The system will already -O2 all the binaries you generate. Is there
> something else you are looking for?
specifically, I'm looking to set -O3 -march=i486, but it sounds like -O3
can find esoteric errata in code, so now I don't know if i want to do
that. Basically my aim of all this, really, is to have the code as
optimized to my 486 as I can practically get it. Are there better flags
to optimize my binaries?
> > Is there a
> > better way to specify gcc flags other than editing the 20 or so Makefiles
> > and configure scripts? I already have CFLAGS and CPPFLAGS set in my
> > environment, but they don't seem to have any affect.
>
> The environment won't impact those, but you might try /etc/mk.conf
> However, I'm not sure you really want to be touching them...
>
>
> .pm
>
--
1 + 1 = 10