From 8c40900fc28a7dda33a491902c5545b9abb37f58 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor gcc
itself, gccgo
is free software
distributed under
the GNU General Public
License.
+
Note that gccgo
is not the 6g
compiler; see
-the 6g
set up instructions
-for that compiler.
+the Installing Go instructions for that
+compiler.
+
gcc
source code. The gccgo
source code
is a branch of the main gcc
code
repository: svn://gcc.gnu.org/svn/gcc/branches/gccgo
.
+
configure
, add the
option --enable-languages=go
(along with other languages you
may want to build).
+
+
+
+A number of prerequisites are required to build gcc
, as
+described on the gcc
web site. If those are all
+available, then a typical build and install sequence would look like
+this:
+
+
+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 ++
-I
or -L
option to
gccgo
. Both options take directories to search. The
-L
option is also passed to the linker.
-The gccgo
compiler does not currently (2009-10-14) record
+The gccgo
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
Some Go features are not yet implemented in gccgo
. As of
-2009-10-14, the following are not implemented:
+2009-11-06, the following are not implemented: