Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2015 23:55:05 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
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
Message-ID:  <201504022355.t32Nt5as073933@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 @@
     <title>Prerequisites</title>
 
     <sect2 xml:id="installing-binutils">
-      <title>Installing binutils from ports</title>
+      <title>Installing binutils and gcc</title>
 
       <para>To make use of all of the new features in the latest
 	<application>GCC</application> versions, the latest version of
@@ -69,24 +69,19 @@
 	<application>binutils</application> using the &os; ports tree,
 	issue the following command:</para>
 
-      <screen>&prompt.root; <userinput>cd /usr/ports/devel/binutils &amp;&amp; make install</userinput></screen>
-    </sect2>
-
-    <sect2 xml:id="installing-gcc">
-      <title>Installing GCC from ports</title>
+      <screen>&prompt.root; <userinput>pkg install devel/binutils</userinput></screen>
 
       <para>The &os; ports tree offers several new versions of
-	<application>GCC</application>.  The following example is for
-	the stable version 4.4.  However, it is possible to install
-	previous or later development versions (e.g.
-	<package>lang/gcc43</package> or
-	<package>lang/gcc45</package>).</para>
+	<application>GCC</application>.  The default version is called
+	<package>lang/gcc</package>.  Other versions can be found
+	with
+	<screen>&prompt.user; <userinput>pkg search gcc</userinput></screen>
+      </para>
 
       <para>To install one of the mentioned
-	<application>GCC</application> ports, run the following
-	command:</para>
+	<application>GCC</application> ports, run:</para>
 
-      <screen>&prompt.root; <userinput>cd /usr/ports/lang/<replaceable>gcc44</replaceable> &amp;&amp; make install</userinput></screen>
+      <screen>&prompt.root; <userinput>pkg install <replaceable>lang/gcc</replaceable></userinput></screen>
     </sect2>
   </sect1>
 
@@ -203,23 +198,4 @@ CPP=cpp44
       <programlisting>.if empty(.CURDIR:M/usr/ports/net/openldap*) &amp;&amp; empty(.CURDIR:M/usr/ports/xxx/yyy) &amp;&amp; ...</programlisting>
     </sect2>
   </sect1>
-
-  <sect1 xml:id="performance-imparct">
-    <title>Impact on the binary performance</title>
-
-    <para>Using <application>GCC</application> version 4.4 with
-      <acronym>SSSE3</acronym> instruction set enabled (if supported by
-      the <acronym>CPU</acronym>) 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).</para>
-
-    <para>The table located at <uri xlink:href="http://people.freebsd.org/~mm/benchmarks/perlbench/">http://people.freebsd.org/~mm/benchmarks/perlbench/</uri>;
-      shows a comparison of <application>GCC</application> versions
-      currently available in base &os; system,
-      <application>GCC</application> version 4.3 and
-      <application>GCC</application> version 4.4  with various
-      combinations of <literal>CFLAGS</literal> using the perlbench
-      benchmark suite.</para>
-  </sect1>
 </article>



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