From owner-freebsd-stable Sun Oct 28 6:42:40 2001 Delivered-To: freebsd-stable@freebsd.org Received: from turtle.looksharp.net (cc360882-d.strhg1.mi.home.com [24.13.43.207]) by hub.freebsd.org (Postfix) with ESMTP id 08FC437B406; Sun, 28 Oct 2001 06:42:36 -0800 (PST) Received: by turtle.looksharp.net (Postfix, from userid 1003) id AF31A3EB5; Sun, 28 Oct 2001 09:42:49 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by turtle.looksharp.net (Postfix) with ESMTP id AB2C9BAA6; Sun, 28 Oct 2001 09:42:49 -0500 (EST) Date: Sun, 28 Oct 2001 09:42:49 -0500 (EST) From: "Brandon D. Valentine" To: mikea Cc: , , , Subject: Re: adding athlon xp to bsd.cpu.mk In-Reply-To: <20011028083735.B8778@mikea.ath.cx> Message-ID: <20011028094117.F65051-100000@turtle.looksharp.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 28 Oct 2001, mikea wrote: >On Sun, Oct 28, 2001 at 01:49:05AM -0500, Chip Marshall wrote: > >> Couldn't a test be done on the Features information of the processor >> to determine the best optimizations? Or would that break >> cross-compiliation of optimized code? > >So I compile something on my AMD box which I expect to run >only on my P-III or P-IV box. The program is optimized for the >AMD processor. This is _not_ what I would want. Ditto for the >converse case. > >IMHO, the control needs to be in environment variables and/or >in parameters passed to the compiler somehow. It is. This thread was only discussing how to get the kernel to recognize these features. The CPUTYPE and CFLAGS envvars have always controlled which optimizations the compiler is allowed to use. That won't be changing. -- "Never put off until tomorrow what you can do today. There might be a law against it by that time." -- /usr/games/fortune, 07/30/2001 Brandon D. Valentine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message