optimization levels for 6-STABLE build{kernel,world}
Michael Butler
imb at protected-networks.net
Tue Sep 12 12:31:32 PDT 2006
Marc G. Fournier wrote:
> What are ppl currently using for CFLAGS/COPTFLAGS in /etc/make.conf for
> building kernel/world? I know awhile back it wasn't recommended to go
> above -O2, for instance, but suspect that has changed ... ?
CFLAGS=-O2 -pipe -fno-strict-aliasing
COPTFLAGS=-O2 -pipe -fno-strict-aliasing
CPUTYPE?=prescott
.. just works(tm) for an Intel T-2300 dual core ;-)
Using -O3 will get you into bother with the amount of inlining the
compiler wants to do to the kernel,
Michael
More information about the freebsd-stable
mailing list