GCC question
andrew clarke
mail at ozzmosis.com
Mon Jun 22 15:45:55 UTC 2015
On Sat 2015-06-20 10:31:14 UTC-0453, William A. Mahaffey III (wam at 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 at 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 at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
> [root at 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 at 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.
More information about the freebsd-questions
mailing list