Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2015 01:45:45 +1000
From:      andrew clarke <mail@ozzmosis.com>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: GCC question
Message-ID:  <20150622154545.GA92373@ozzmosis.com>
In-Reply-To: <558585CB.4070607@hiwaay.net>
References:  <558585CB.4070607@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150622154545.GA92373>