From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.43)
	id 1EBnmy-0005Cw-N7
	for garchives@archives.gentoo.org; Sun, 04 Sep 2005 06:15:37 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j846BnOh010872;
	Sun, 4 Sep 2005 06:11:49 GMT
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j8468IET019193
	for <gentoo-user@lists.gentoo.org>; Sun, 4 Sep 2005 06:08:18 GMT
Received: by wproxy.gmail.com with SMTP id i6so791318wra
        for <gentoo-user@lists.gentoo.org>; Sat, 03 Sep 2005 23:11:13 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=LQYFvfzPPzTiGNaVara1LwEAXaYGYJz1dFTgGNjEM+PT5iwXhV7xhnaGTdmbipunyzpwreX/VebK6VFhdukxwiBiMpfHLeeAmzqPriofGMtIymBzNU4mpOuj+lLJU+aoB0PLjF4/6shJr7JuFl5pinRf+7xJhXZ8Qwpob98PepM=
Received: by 10.54.21.63 with SMTP id 63mr3464064wru;
        Sat, 03 Sep 2005 23:11:13 -0700 (PDT)
Received: by 10.54.94.11 with HTTP; Sat, 3 Sep 2005 23:11:13 -0700 (PDT)
Message-ID: <2d82acac05090323114d1fd4e0@mail.gmail.com>
Date: Sun, 4 Sep 2005 02:11:13 -0400
From: ellotheth rimmwen <ellotheth@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] cpu flags / USE flags / compiler flags
In-Reply-To: <20050904032719.GA6185@waltdnes.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <5bdc1c8b05083109046b8ebdf7@mail.gmail.com>
	 <20050904032719.GA6185@waltdnes.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j8468IET019193
X-Archives-Salt: 78ece19b-ea82-47e0-ac56-1483cb70d785
X-Archives-Hash: a4d6fb00f2d10369f9885ad2b174ab39

Hm. Clear, brief, instructive. Smells a lot like a mini-HOWTO.

On 9/3/05, waltdnes@waltdnes.org <waltdnes@waltdnes.org> wrote:

>   There are CPU flags and there are USE flags.  Some of them have the
> same names, and that may confuse you.  It works like this...
>   1) Get a listing of your cpu's flags in /proc/cpuinfo
>   2) Check against the list of supported flags in gcc for you cpu, and
>      add them to CFLAGS
>   3) Check http://www.gentoo.org/dyn/use-index.xml for a list of valid
>      USE flags, and include any that show up in /proc/cpuinfo
>   4) Repeat step 3) with /usr/portage/profiles/use.local.desc for any
>      programs you're emerging.  There doesn't seem to be anything
>      special on your pentium4, but my AMD64 not only has mmx and 3dnow,
>      it also has mmxext and 3dnowext.  mplayer can take advantage of
>      them.  I include them in the /etc/portage/package.use entry for
>      media-video/mplayer.
> 
>  I'll assume that you're using gcc 3.3.5.  In that case, the place to
> look for CPU flag options is...
> 
> http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
> 
>   That list shows pentium4, mmx, sse, and sse2.  Also, if you have *ANY*
> version of sse available, you can improve performance by running floating
> point math via sse, rather than 387 instructions.  I recommend...
> 
> CFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse"
> 
> http://www.gentoo.org/dyn/use-index.xml shows mmx and sse as valid USE
> flags, so you can include them in USE.
> 
> --
> Walter Dnes <waltdnes@waltdnes.org>
> My musings on technology and security at http://tech_sec.blog.ca
> --
> gentoo-user@gentoo.org mailing list
> 
>

-- 
gentoo-user@gentoo.org mailing list