summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-11-06 14:16:47 -0800
committerIan Lance Taylor <iant@golang.org>2009-11-06 14:16:47 -0800
commiteb5cdfd67ff6d32df4c4c27840eaee027c5e3512 (patch)
tree8ae693ba94460e3dcb2f743227aaf3fe8433ee20 /doc
parent265ce86fb4709f34ee170dc5ec5e6f6ec3e60215 (diff)
downloadgolang-eb5cdfd67ff6d32df4c4c27840eaee027c5e3512.tar.gz
Expand section on building gccgo.
R=r http://go/go-review/1026008
Diffstat (limited to 'doc')
-rw-r--r--doc/go_gccgo_setup.html29
1 files changed, 25 insertions, 4 deletions
diff --git a/doc/go_gccgo_setup.html b/doc/go_gccgo_setup.html
index 9a8bfc835..360da9599 100644
--- a/doc/go_gccgo_setup.html
+++ b/doc/go_gccgo_setup.html
@@ -8,10 +8,13 @@ Like <code>gcc</code> itself, <code>gccgo</code> is free software
distributed under
the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public
License</a>.
+</p>
+<p>
Note that <code>gccgo</code> is not the <code>6g</code> compiler; see
-the <a href="install.html"><code>6g</code> set up</a> instructions
-for that compiler.
+the <a href="install.html">Installing Go</a> instructions for that
+compiler.
+</p>
<h2 id="Source_code">Source code</h2>
@@ -22,6 +25,7 @@ has <a href="http://gcc.gnu.org/svn.html">instructions for getting the
<code>gcc</code> source code</a>. The <code>gccgo</code> source code
is a branch of the main <code>gcc</code> code
repository: <code>svn://gcc.gnu.org/svn/gcc/branches/gccgo</code>.
+</p>
<h2 id="Building">Building</h2>
@@ -32,6 +36,23 @@ the <a href="http://gcc.gnu.org/install/">instructions on the gcc web
site</a>. When you run <code>configure</code>, add the
option <code>--enable-languages=go</code> (along with other languages you
may want to build).
+</p>
+
+<p>
+A number of prerequisites are required to build <code>gcc</code>, as
+described on the <code>gcc</code> web site. If those are all
+available, then a typical build and install sequence would look like
+this:
+
+<pre>
+svn checkout svn://gcc.gnu.org/svn/gcc/branches/gccgo gccgo
+mkdir objdir
+cd objdir
+../gccgo/configure --enable-languages=c,c++,go
+make
+make install
+</pre>
+</p>
<h2 id="Using_gccgo">Using gccgo</h2>
@@ -123,7 +144,7 @@ may pass the <code>-I</code> or <code>-L</code> option to
<code>gccgo</code>. Both options take directories to search. The
<code>-L</code> option is also passed to the linker.
-The <code>gccgo</code> compiler does not currently (2009-10-14) record
+The <code>gccgo</code> compiler does not currently (2009-11-06) record
the file name of imported packages in the object file. You must
arrange for the imported data to be linked into the program.
@@ -137,7 +158,7 @@ gccgo -o main main.o mypackage.o # Explicitly links with mypackage.o
<p>
Some Go features are not yet implemented in <code>gccgo</code>. As of
-2009-10-14, the following are not implemented:
+2009-11-06, the following are not implemented:
<ul>
<li>Garbage collection is not implemented. There is no way to free memory.