From owner-freebsd-x11@FreeBSD.ORG Mon Sep 13 19:10:33 2004 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B46DC16A4CE; Mon, 13 Sep 2004 19:10:33 +0000 (GMT) Received: from lakermmtao01.cox.net (lakermmtao01.cox.net [68.230.240.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02DB643D41; Mon, 13 Sep 2004 19:10:33 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.71.51]) by lakermmtao01.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP <20040913191032.IZHD25113.lakermmtao01.cox.net@dolphin.local.net>; Mon, 13 Sep 2004 15:10:32 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id i8DJAV7c055319; Mon, 13 Sep 2004 14:10:31 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 13 Sep 2004 14:10:26 -0500 From: "Conrad J. Sabatier" To: Puna Tannehill Message-ID: <20040913141026.6d572ae2@dolphin.local.net> In-Reply-To: <4145D786.4080807@imagescape.com> References: <4145D786.4080807@imagescape.com> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-x11@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: 3dnow, mmx, k6-2 optimizing? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 19:10:33 -0000 On Mon, 13 Sep 2004 12:23:18 -0500, Puna Tannehill wrote: > I've been looking for possible flags, optimizations, really anything > that would help me setup my laptop to use mmx and 3dnow. I've updated > > /etc/make.conf to -march to the drum of a k6-2, but I'm not even sure > if mmx and 3dnow are being taken into consideration for compiling and > such, especially for Xorg. > > I did some googling and found people who used CFLAGS like -mmmx and > -m3dnow, but when I run with those options, they fail and said to be > invalid. they don't appear in 'man gcc' which should have been the > first place i looked. I'm not finding anything in terms of compiling > or configuring Xorg to use 3dnow or mmx, or even how to check to see > if they are automatically detected and used. > > Any thoughts? > > Puna I don't know why those flags would not be working for you; I've been using them for quite some time now on my Athlon (32-bit) box. One oddity I just noticed very recently is that, with the recent patches to "make", the CPUTYPE variable seems to be ignored now, which is why I explicitly added the "-march" flag to CFLAGS. Also, note that I don't use "-mmmx -m3dnow" for kernel builds; you don't want to be doing this, as it can easily break things in the kernel, but for general builds and port builds, it's fine: CPUTYPE?=athlon CFLAGS= -O3 -pipe -march=athlon -mmmx -m3dnow # buildkernel variables settings KERNCONF=CUSTOM COPTFLAGS= -O3 -pipe -march=athlon -- Conrad J. Sabatier -- "In Unix veritas"