CFLAGS and such
John Baldwin
jhb at FreeBSD.org
Thu Jan 15 10:42:19 PST 2004
On Thursday 15 January 2004 10:41 am, Kris Kennaway wrote:
> On Thu, Jan 15, 2004 at 02:09:19PM +0100, Christer Solskogen wrote:
> > When a release('make release' og TIER) is made, is there some kind of
> > optimization using CPUTYPE or CFLAGS?
> > If yes, what? If no, why?
>
> CFLAGS has the default value of "-O -pipe". Further
> (e.g. CPU-specific) optimizations are not used by default, because
> FreeBSD releases are required to work on anything down to a 386 (5.x
> kernels excepted).
Incorrect. We use -mcpu=pentiumpro which optimizes the code flow for a PII or
later, but still only uses i386 instructions. Thus, we do optimize for more
recent CPUs while still generating code that will run on all CPUs. Check the
gcc info pages for the difference between -march and -mcpu on i386 and -mcpu
and -mtune on all other archs.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-chat
mailing list