From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 23:07:21 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 897EE1065679 for ; Sat, 24 Jan 2009 23:07:21 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-qy0-f17.google.com (mail-qy0-f17.google.com [209.85.221.17]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8D88FC1D for ; Sat, 24 Jan 2009 23:07:21 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by qyk10 with SMTP id 10so8244867qyk.19 for ; Sat, 24 Jan 2009 15:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=Jfa2MhR5sM2qcp7uZZ0pjvIp1TAR4icvqNw4g3ah/xk=; b=eD5uNjqpQLmO+7Hz8k//hKNFRohYl+wdKasRqBKYkkzUxmrTCpXLY8FEmTsb76VPTE gR30YPvf86aoYN0iy+yW6/yRUz0iWBggKhM9gkBsqH3Wt3o+lDYl4zb4v6L8LC8IlOh8 w2t2ETlJGMD0TjDSkQsCqLj0t8cPUpDlWDhxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=Ui2UCMSK2kLN6SaWYymCLNJe6FzyeIihdj84REeD7onIMVtRg96V/AowvqdP6pxDmK lXfmdZSTMA2z/pQ3WbP9cyx8gxbWSxH8YcEdPdDR9CCUV3jwDnHgnREuBhisH0qhP/iZ mnhfKOkspLoe6N/Ref/p+kP8QX1jbiMjzL/tE= Received: by 10.214.215.16 with SMTP id n16mr4562674qag.101.1232838440468; Sat, 24 Jan 2009 15:07:20 -0800 (PST) Received: from ?192.168.1.100? ([190.177.192.44]) by mx.google.com with ESMTPS id 7sm12292216ywo.50.2009.01.24.15.07.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Jan 2009 15:07:19 -0800 (PST) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Sat, 24 Jan 2009 21:07:18 -0200 User-Agent: KMail/1.9.10 References: <497B5686.8050600@pp.dyndns.biz> <9a52b1190901241107h5bff8c1al6c980b7ad8e99051@mail.gmail.com> In-Reply-To: <9a52b1190901241107h5bff8c1al6c980b7ad8e99051@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200901242107.18233.gnemmi@gmail.com> Subject: Re: default CFLAGS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2009 23:07:21 -0000 On Saturday 24 January 2009 5:07:57 pm Saifi Khan wrote: > On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken wrote: > > RW wrote: > >> On Sat, 24 Jan 2009 15:27:02 +0100 > >> > >> Morgan Wesstr=F6m wrote: > >>> The section "options enabled" will list them all. I usually only add > >>> "-march=3Dnative" to my CFLAGS to enable a few more CPU specific > >>> optimizations. > >> > >> If you set CPUTYPE, -march is set to match, so setting -march=3Dnative > >> should be redundant. OTOH a number of other make variables are defined > >> from CPUTYPE, so if you set -march=3Dnative, but not CPUTYPE you might > >> miss some optimisations based on build options. > >> > >> I've no idea whether there are any such options, just that you're > >> probably not going to do better than setting CPUTYPE, and leaving the > >> rest alone. > > > > I'm sorry I was unclear. I set CPUTYPE to native of course which is then > > passed as -march=3Dnative to compiler. > > The entry in file /var/run/dmesg.boot shows the CPU information as > CPU: Intel (R) Celeron (R) CPU 2.40 GHz (686-class CPU) > > The entry in /usr/share/examples/etc/make.conf shows CPU types for Intel = as > core2 core nocona pentium4m pentium4 prescott pentium3m pentium3 pentium-m > pentium2 pentiumpro pentium-mx pentium i486 i386 > > What would be the appropriate CPUTYPE specification in this case ? > > Is there any table which sort of maps the marketing names of the Intel > processor with the CPU information shown in dmesg ? This might help you out a little. http://forums.freebsd.org/showthread.php?t=3D816 Hope you found it usefull Regards =2D-=20 Blessings Gonzalo Nemmi