From owner-freebsd-questions@FreeBSD.ORG Mon Jun 22 15:45:55 2015 Return-Path: Delivered-To: freebsd-questions@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0AA4EB0 for ; Mon, 22 Jun 2015 15:45:55 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a45.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.freebsd.org (Postfix) with ESMTP id E3ADCF9E for ; Mon, 22 Jun 2015 15:45:54 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a45.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTP id 62EBC480AE; Mon, 22 Jun 2015 08:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:references:mime-version:content-type: in-reply-to; s=ozzmosis.com; bh=/Qg3uizxbZRHI9Bb6meVgOZ69V4=; b= 48XPSrtZWb/dWXIoIxhqZGdwilb89W8YHRH6fFp8pcIJIzshqGFe5vP6pVA4SRuR Tqf0Ihj/liEZ7xtHfkrsz85yIQqSuzc7VH3EKYBibcFy+FY2qDBsjnilkxZN1X8f /Ehd5FzN9NUxaK+COqMX9lkint4lsPOsJQ/RZLFej54= Received: from blizzard.ozzmosis.com (unknown [203.217.88.246]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTPSA id 25C3A480A6; Mon, 22 Jun 2015 08:45:48 -0700 (PDT) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id 78893E50; Tue, 23 Jun 2015 01:45:45 +1000 (AEST) Date: Tue, 23 Jun 2015 01:45:45 +1000 From: andrew clarke To: "William A. Mahaffey III" Cc: FreeBSD Questions !!!! Subject: Re: GCC question Message-ID: <20150622154545.GA92373@ozzmosis.com> References: <558585CB.4070607@hiwaay.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <558585CB.4070607@hiwaay.net> User-Agent: Mutt/1.5.23 (2014-03-12) 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 15:45:55 -0000 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.