[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make build and -O



Dixitur illum espie@nerim.net scribere...

>If there's a directory that doesn't obey COPTS (or CXXOPTS for C++), that's
>a bug.

XF4 doesn't exactly listen to $CC and $COPTS (that's fixable), and
quite a lot of ports don't, but in general, it works.

>That said, compiling with !-O2 might lead you into trouble.

I've confirmed -O2 -march=i486 -mcpu=pentium with gcc 2.95,
and -Os -march=pentium -mcpu=athlon-xp with gcc 3.x (and -O2),
but I don't think it's worth the effort because you will ef-
fectively lose the support from the OpenBSD developers.

That said, if you _really_ want to experiment, be sure to
specify -fno-strength-reduce and -fno-strict-aliasing so the
optimizer does not work too aggressive. I don't know exactly
myself what these are doing (only a bit), but I know they
help, especially with old code.

Again:	using these options to gain 1% of speed isn't worth it,
	because you lose reliability.

//Thorsten
-- 
Currently blocking eMail from the following domains: bigpond.com, biz, gmx.de,
gmx.net, hotmail.com, info, jumpy.it, libero.it, name, netscape.net,
postino.it, simplesnet.pt, spymac.com, tatanova.com, tiscali.co.uk,
tiscali.cz, tiscali.de, tiscali.it, voila.fr, yahoo.co.uk, yahoo.com.