GCC question
William A. Mahaffey III
wam at hiwaay.net
Mon Jun 22 16:01:46 UTC 2015
On 06/22/15 10:52, andrew clarke wrote:
> 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.
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.
More information about the freebsd-questions
mailing list