Date: Mon, 22 Jun 2015 11:07:53 -0453 From: "William A. Mahaffey III" <wam@hiwaay.net> Cc: "FreeBSD Questions !!!!" <freebsd-questions@freebsd.org> Subject: Re: GCC question Message-ID: <55883162.8050501@hiwaay.net> In-Reply-To: <20150622154545.GA92373@ozzmosis.com> References: <558585CB.4070607@hiwaay.net> <20150622154545.GA92373@ozzmosis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55883162.8050501>