From owner-freebsd-questions@FreeBSD.ORG Fri Sep 4 18:17:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9301106568D for ; Fri, 4 Sep 2009 18:17:28 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 64A3B8FC28 for ; Fri, 4 Sep 2009 18:17:28 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MjdLi-0001KV-Tj for freebsd-questions@freebsd.org; Fri, 04 Sep 2009 20:17:26 +0200 Received: from pool-68-239-64-150.res.east.verizon.net ([68.239.64.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2009 20:17:26 +0200 Received: from nightrecon by pool-68-239-64-150.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2009 20:17:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Fri, 04 Sep 2009 14:17:33 -0400 Lines: 44 Message-ID: References: <200909040510.n845AsPU024402@mp.cs.niu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-68-239-64-150.res.east.verizon.net Sender: news Subject: Re: cc -march questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2009 18:17:28 -0000 Scott Bennett wrote: > On Thu, 3 Sep 2009 10:28:09 -0400 Daniel Molina Wegener > > wrote: >>2009/9/3 Scott Bennett >> >>> What exactly does "cc -march=prescott" enable cc to do? Does it >>> include >>> instruction scheduling for the pipeline structure of the Prescott CPUs? >>> Does >>> it include other options, e.g., "-mmmx -msse -msse2 -msse3"? >>> Thanks in advance for any information on the above! >>> >> >>According to the GCC manual page, it enables MMX, SSE, SSE2 and SSE3 >>instruction set support. >> >>Try: >>$ man 1 gcc >>/prescott >> > Thanks much for your reply. This is very bizarre. I think I've > looked > at that page at least 50 times in the past few years and somehow never saw > those lines. Sigh. :-} > I've had CPUTYPE=prescott in my /etc/make.conf for a long time now, > and I recently installed math/atlas-devel. I wonder if specifying > CPUTYPE=prescott may have caused it to choose the wrong components to > include in the final version of libalapack. If so, then I should rebuild > it without CPUTYPE=prescott. > If you do: dmesg | grep Features you will get a list of what the processor supports. You may then examine the /usr/src/share/mk/bsd.cpu.mk file looking for a match. Yes it is somewhat arcane to read, but it does list all. Notice it refers to CPUTYPE. I usually use a line such as CPUTYPE?= athlon in my make.conf. Been doing it like this for years and never had any problem. And, of course, let's not forget the MAN pages :-) YMMV -Mike