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 1EBmyl-0004Bl-Ll for garchives@archives.gentoo.org; Sun, 04 Sep 2005 05:23:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j845JLfq020033; Sun, 4 Sep 2005 05:19:21 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j845FWCZ028801 for ; Sun, 4 Sep 2005 05:15:33 GMT Received: by zproxy.gmail.com with SMTP id x7so618688nzc for ; Sat, 03 Sep 2005 22:18:27 -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=O9R74+5FCKigsG6POOWxfTxTDb8Dc44jjl7QSH8nVsQtSUz3K00+D1MWN5pxcyahrzUB5Yx9G6/DNNlbeYSKVdQuEylZGkJ2AvDv8qheEKzB+vob+NsqfYkprvV5MtGO3USTOh1rRyoZOVKIhyFvA2yIRyIO0kH7EIzEr1IY1F8= Received: by 10.36.68.15 with SMTP id q15mr3593905nza; Sat, 03 Sep 2005 22:18:27 -0700 (PDT) Received: by 10.36.60.4 with HTTP; Sat, 3 Sep 2005 22:18:27 -0700 (PDT) Message-ID: <5bdc1c8b05090322184cfa1075@mail.gmail.com> Date: Sat, 3 Sep 2005 22:18:27 -0700 From: Mark Knecht 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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 j845FWCZ028801 X-Archives-Salt: 7c91e1a6-d3af-4fee-b15c-906b1a5acfc1 X-Archives-Hash: eed0eb977fc2165186e33d88af35537f Thanks Walter. That description verifies my guess and gives me a reason to continue looking at the issue. I appreciate your help. Cheers, Mark On 9/3/05, waltdnes@waltdnes.org wrote: > On Wed, Aug 31, 2005 at 09:04:21AM -0700, Mark Knecht wrote > > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid > > xtpr > [...deletia...] > > I then looked for CPU flags that had an equivalent USE flag and that > > might be of use for faster graphics. On this machine I chose mmx, sse > > & sse2. Armed with that I changed my make.conf file to look like this: > > 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 > My musings on technology and security at http://tech_sec.blog.ca > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list