From owner-freebsd-questions@FreeBSD.ORG Mon Jun 22 16:01:46 2015 Return-Path: Delivered-To: freebsd-questions@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 968E7252 for ; Mon, 22 Jun 2015 16:01:46 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 615ACC41 for ; Mon, 22 Jun 2015 16:01:45 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (rbn1-216-180-76-189.adsl.hiwaay.net [216.180.76.189]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t5MG1cKO005965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 22 Jun 2015 11:01:38 -0500 Message-ID: <55883162.8050501@hiwaay.net> Date: Mon, 22 Jun 2015 11:07:53 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: GCC question References: <558585CB.4070607@hiwaay.net> <20150622154545.GA92373@ozzmosis.com> In-Reply-To: <20150622154545.GA92373@ozzmosis.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2015 16:01:46 -0000 On 06/22/15 10:52, andrew clarke wrote: > On Sat 2015-06-20 10:31:14 UTC-0453, William A. Mahaffey III (wam@hiwaay.net) wrote: > >> I have gcc 4.8 installed on this system. I notice a slight newer version >> available, specifically referencing AMD64, which this box is: >> >> [root@kabini1, /etc, 10:15:12am] 630 % uname -a >> FreeBSD kabini1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue >> Apr 7 03:01:12 UTC 2015 >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >> [root@kabini1, /etc, 10:15:15am] 631 % grep -i gcc LIST.installed.txt >> gcc-4.8.4_3 GNU Compiler Collection 4.8 >> gcc-ecj-4.5 Eclipse Java Compiler used to build GCC Java >> [root@kabini1, /etc, 10:19:39am] 632 % grep -i gcc LIST.available.txt >> amd64-gcc-4.9.2_1 >> amd64-xtoolchain-gcc-0.1 > I suspect these are for cross-compiling to amd64 from non-amd64 hosts. > >> I only use ports for the flash library, however I am wondering if there >> might be any performance improvement in recompiling some stuff locally, >> possibly with a compiler tuned/optimized for AMD64. > The regular gcc in base is already tuned to amd64. > > You could use clang instead of gcc. It is the default C/C++ compiler > in FreeBSD 10. Performance benefits are likely to be marginal, > though. I found some sources online last summer when I built this box that said clang produced worse code than gcc, that's most of the reason I went w/ 9.3R rather than 10.n, which are clang based, as I understand things. I guess I am good to go now, then, thanks :-) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.