From owner-svn-doc-all@FreeBSD.ORG Thu Apr 2 23:55:06 2015 Return-Path: Delivered-To: svn-doc-all@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 F2696381; Thu, 2 Apr 2015 23:55:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE0E0AA6; Thu, 2 Apr 2015 23:55:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t32Nt5Nv073934; Thu, 2 Apr 2015 23:55:05 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t32Nt5as073933; Thu, 2 Apr 2015 23:55:05 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201504022355.t32Nt5as073933@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Thu, 2 Apr 2015 23:55:05 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46434 - head/en_US.ISO8859-1/articles/custom-gcc X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2015 23:55:06 -0000 Author: eadler Date: Thu Apr 2 23:55:04 2015 New Revision: 46434 URL: https://svnweb.freebsd.org/changeset/doc/46434 Log: custom-gcc: modernize - use pkg instead of directly installing from ports - reduce references to old versions of gcc, and make the article more future-proof - now that we either have a modern version of gcc or clang in base / as the package building compiler, the impact of binary perf is no longer relevant. really, this article should either move into the handbook or be removed. Modified: head/en_US.ISO8859-1/articles/custom-gcc/article.xml Modified: head/en_US.ISO8859-1/articles/custom-gcc/article.xml ============================================================================== --- head/en_US.ISO8859-1/articles/custom-gcc/article.xml Thu Apr 2 23:44:36 2015 (r46433) +++ head/en_US.ISO8859-1/articles/custom-gcc/article.xml Thu Apr 2 23:55:04 2015 (r46434) @@ -55,7 +55,7 @@ Prerequisites - Installing binutils from ports + Installing binutils and gcc To make use of all of the new features in the latest GCC versions, the latest version of @@ -69,24 +69,19 @@ binutils using the &os; ports tree, issue the following command: - &prompt.root; cd /usr/ports/devel/binutils && make install - - - - Installing GCC from ports + &prompt.root; pkg install devel/binutils The &os; ports tree offers several new versions of - GCC. The following example is for - the stable version 4.4. However, it is possible to install - previous or later development versions (e.g. - lang/gcc43 or - lang/gcc45). + GCC. The default version is called + lang/gcc. Other versions can be found + with + &prompt.user; pkg search gcc + To install one of the mentioned - GCC ports, run the following - command: + GCC ports, run: - &prompt.root; cd /usr/ports/lang/gcc44 && make install + &prompt.root; pkg install lang/gcc @@ -203,23 +198,4 @@ CPP=cpp44 .if empty(.CURDIR:M/usr/ports/net/openldap*) && empty(.CURDIR:M/usr/ports/xxx/yyy) && ... - - - Impact on the binary performance - - Using GCC version 4.4 with - SSSE3 instruction set enabled (if supported by - the CPU) may yield up to 10% average increase - in binary performance. In certain tests, the results show - more than a 20% performance boost (e.g. in multimedia - processing). - - The table located at http://people.freebsd.org/~mm/benchmarks/perlbench/ - shows a comparison of GCC versions - currently available in base &os; system, - GCC version 4.3 and - GCC version 4.4 with various - combinations of CFLAGS using the perlbench - benchmark suite. -