From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 19:07:57 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 BF1D31065673 for ; Sat, 24 Jan 2009 19:07:57 +0000 (UTC) (envelope-from saifikhan@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8F6D78FC22 for ; Sat, 24 Jan 2009 19:07:57 +0000 (UTC) (envelope-from saifikhan@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5357339rvf.43 for ; Sat, 24 Jan 2009 11:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5+8yMW3BjsV0jqwAJulemNFp8BV58i130/aqZrJ8x3k=; b=c+fiVHrYKh7k1JAEPy1dQHOarmvahBk1Y4mA+y74sZOSup+NQBjN6a709iUhDWPSuY BrHYjs0pPjVjIINOu036JDkMt+OBo7v+IgK8nEJ9YaBw0GFf3P2lvcCgQb5dgv2Knqyb rTdaNxrWVVp95gnjRoUNciMfxmiX0dOm0UHhI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KNIX97DOtV1m3rk/QFpBljDQOWPsu8iFnmqa9haam09UVOiyiWuPn9ICV8CqfGcU3U LCis7Jm0/uQ0F8R1Cwc1JmUQzJKRqgeT7jDc88SMQGd//O9Cpq97xE00a/VlZHa5xHW5 bTS7poEhvcH03OmTOvqemDbg2Kj2qvpdQi7rY= MIME-Version: 1.0 Received: by 10.141.193.1 with SMTP id v1mr1247330rvp.186.1232824077173; Sat, 24 Jan 2009 11:07:57 -0800 (PST) In-Reply-To: <497B5686.8050600@pp.dyndns.biz> References: <20090124124535.3006687c@gumby.homeunix.com> <9a52b1190901240451i14dc544fm1c241d6f43fa897b@mail.gmail.com> <20090124131629.1f9fabe4@gumby.homeunix.com> <497B2536.7030907@pp.dyndns.biz> <20090124174357.4aafcf1a@gumby.homeunix.com> <497B5686.8050600@pp.dyndns.biz> Date: Sat, 24 Jan 2009 19:07:57 +0000 Message-ID: <9a52b1190901241107h5bff8c1al6c980b7ad8e99051@mail.gmail.com> From: Saifi Khan To: Pojken Purken Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions 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 19:07:58 -0000 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 proc= essor with the CPU information shown in dmesg ? --=20 thanks Saifi.