From owner-freebsd-current Thu Feb 27 11:19:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D6FE37B401 for ; Thu, 27 Feb 2003 11:19:15 -0800 (PST) Received: from arminho.ip.pt (arminho.ip.pt [195.23.132.10]) by mx1.FreeBSD.org (Postfix) with SMTP id E25D943F93 for ; Thu, 27 Feb 2003 11:19:13 -0800 (PST) (envelope-from qnuno@pt-quorum.com) Received: (qmail 11580 invoked from network); 27 Feb 2003 19:19:11 -0000 Received: from unknown (HELO perca.ip.pt) (195.23.132.3) by arminho.ip.pt with SMTP; 27 Feb 2003 19:19:11 -0000 Received: (qmail 18406 invoked from network); 27 Feb 2003 19:19:09 -0000 Received: from unknown (HELO gw.tex.bogus) ([195.23.212.231]) (envelope-sender ) by perca.ip.pt (qmail-ldap-1.03) with SMTP for ; 27 Feb 2003 19:19:09 -0000 Received: by gw.tex.bogus (Postfix, from userid 1001) id D4AB1428F; Thu, 27 Feb 2003 19:17:40 +0000 (WET) Date: Thu, 27 Feb 2003 19:17:39 +0000 From: Nuno Teixeira To: freebsd-current@freebsd.org Subject: Re: -O2 considered harmful Message-ID: <20030227191739.GA607@gw.tex.bogus> References: <20030227025155.61529.qmail@web40310.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227025155.61529.qmail@web40310.mail.yahoo.com> X-Operating-System: FreeBSD 5.0-RELEASE-p2 User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 26, 2003 at 06:51:55PM -0800, Rhett Monteg Hollander wrote: > Nuno Teixeira wrote: > > > > Hi, > > > > Just a little question: > > > > Does -march=k6-2 implies -m3dnow? Or -march=pentiumpro implies -mmmx? > Pentium Pro doesn't support MMX; -march=pentiumpro (aka -march=i686) enables > compiling with main i686 instruction set, no MMX\SSE or whatever. > > > > > I always thought that when I use -march it will enable other > > porcessor specific optimizations like mmx and 3dnow (if available). > No way. Besides, only a dozen of open-source UNIX applications can really > profit from MMX, so it's absurd to use -mmmx for day-by-day use. To be correct, > MMX is only useful for real-time video\audio processing. > > A little example: consider some 16-bit pixel set that you need to increase > brightness, i.e. to add some value to every pixel. You can load a word into > integer register, process, and store. You can also load a quadword of four > 16-bit values into MMX register which is mapped onto FPU register, process them > at once, and store. Indeed to be faster. > > Enabling MMX usually results in about 50% performance increase for true CISC > processors like P-MMX, and about 20% for PII and up. > > --- > Regards, > Rhett > Hi, I understand it. Anyway, there is known problems by using -mmmx or -m3dnow on builworld/buildkernel? Well, I used allways march=pentiumpro on stable and now pentium2 on current without any problem. I use some applications like grip, lame, mplayer, etc. Maybe I get some extra performance running this apps. Thanks, Nuno Teixeira -- /* PGP fingerprint: C6D1 06ED EB54 A99C 6B14 6732 0A5D 810D 727D F6C6 */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message