From owner-freebsd-questions@FreeBSD.ORG Mon Apr 4 11:54:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66F1A16A4CE for ; Mon, 4 Apr 2005 11:54:08 +0000 (GMT) Received: from lakermmtao02.cox.net (lakermmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF2543D64 for ; Mon, 4 Apr 2005 11:54:07 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.70.216]) by lakermmtao02.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050404115405.SVFU6521.lakermmtao02.cox.net@dolphin.local.net>; Mon, 4 Apr 2005 07:54:05 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.3/8.13.3) with ESMTP id j34Bs6Vs028831; Mon, 4 Apr 2005 06:54:06 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 4 Apr 2005 06:54:00 -0500 From: "Conrad J. Sabatier" To: Bachelier Vincent Message-ID: <20050404065400.5df59456@dolphin.local.net> In-Reply-To: <20050404073532.GA13922@localhost> References: <20050404073532.GA13922@localhost> X-Mailer: Sylpheed-Claws 1.0.4 (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-questions@freebsd.org Subject: Re: AMD64 optimization on FreeBSD 5.4 i386 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 11:54:08 -0000 On Mon, 4 Apr 2005 09:35:32 +0200, Bachelier Vincent wrote: > Hi, I have a AMD64 and use FreeBSD 5.4 i386. Why aren't you using the amd64 version of FreeBSD? > I have set CPUTYPE=k8 to optimize a little for my computer. > I have seen they set march=athlon-mp when it compile something. I you were running amd64, you could use CPUTYPE=athlon64. > Ok, I have see they is a difference between march=k8 and > march=athlon-mp > > Have a idea ? Yes, download the ISO for amd64 and install it. :-) > Does I compile with march=k8 under cflags ? > for example: CFLAGS=-O2 -march=k8 -pipe > CXXFLAGS=$CFLAGS I think the CXXFLAGS setting is unnecessary, as this will happen by default. > Well, what do you think ? I think you should be running amd64. :-) > could I optimize more than CPUTYPE=k8 ? Yes. See above. :-) Seriously, though, the amd64 version of FreeBSD is quite stable and usable, and would allow you to take full advantage of your machine's 64-bit architecture. Why settle for less? -- Conrad J. Sabatier -- "In Unix veritas"