From owner-freebsd-stable@FreeBSD.ORG Fri Nov 10 22:09:11 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D962816A415 for ; Fri, 10 Nov 2006 22:09:11 +0000 (UTC) (envelope-from mproto@secureworks.com) Received: from mail.secureworks.net (mail.secureworks.net [65.114.32.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 4163F43D69 for ; Fri, 10 Nov 2006 22:09:11 +0000 (GMT) (envelope-from mproto@secureworks.com) Received: (qmail 8636 invoked from network); 10 Nov 2006 22:09:10 -0000 Received: from unknown (HELO ?192.168.23.35?) (63.239.86.3) by 0 with SMTP; 10 Nov 2006 22:09:10 -0000 Message-ID: <4554F887.5000806@secureworks.com> Date: Fri, 10 Nov 2006 17:09:11 -0500 From: Michael Proto User-Agent: Thunderbird 1.5.0.7 (X11/20060914) MIME-Version: 1.0 To: "Jason C. Wells" References: <4554D43E.5010700@highperformance.net> In-Reply-To: <4554D43E.5010700@highperformance.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable Subject: Re: Compiler Options X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 22:09:11 -0000 >From /usr/src/sys/conf/kern.mk: # On the i386, do not align the stack to 16-byte boundaries. Otherwise GCC # 2.95 adds code to the entry and exit point of every function to align the # stack to 16-byte boundaries -- thus wasting approximately 12 bytes of stack # per function call. While the 16-byte alignment may benefit micro benchmarks, # it is probably an overall loss as it makes the code bigger (less efficient # use of code cache tag lines) and uses more stack (less efficient use of data # cache tag lines). Explicitly prohibit the use of SSE and other SIMD # operations inside the kernel itself. These operations are exclusively # reserved for user applications. # .if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 INLINE_LIMIT?= 8000 .endif -Proto Jason C. Wells wrote: > I have set CPUTYPE=p3 in make.conf. When I compile my kernel I see > -march=pentium3 as I expect. I also see -mno-mmx and -mno-sse are set > which I do not expect given that -march=pentium3 is used. I presume > that I want MMX and SSE since my processor supports it. What options do > I set and where do I set them to get a kernel properly tuned for pentium3? > > Thanks, > Jason C. Wells > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Michael Proto | SecureWorks Unix Administrator | PGP ID: 5D575BBE | mproto@secureworks.com *******************************************************