gcc options when building kernel

Erik Trulsson ertr1013 at student.uu.se
Sun Jan 29 13:46:51 PST 2006

On Mon, Jan 30, 2006 at 08:27:29AM +1100, Norberto Meijome wrote:
> Hi all,
> I'm rebuilding my kernel and I noticed some gcc (I believe ) options 
> being used that I don't think I set anyway.
> The options are :
> -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> Does this mean that the kernel won't make use of these cpu features, 
> even though they are supported by the cpu (see below)

Correct.  The CPU registers associated with those CPU features must not be
used inside the kernel, and therefore the build process explicitly disables
them to avoid any mistakes.

<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se

More information about the freebsd-questions mailing list