Next: Import and Export, Previous: GNU Free Documentation License, Up: Top
The gccgo command is a frontend to gcc and supports many of the same options. See Option Summary. This manual only documents the options specific to gccgo.
The gccgo command may be used to compile Go source code into an object file, link a collection of object files together, or do both in sequence.
Go source code is compiled as packages. A package consists of one or more Go source files. All the files in a single package must be compiled together, by passing all the files as arguments to gccgo. A single invocation of gccgo may only compile a single package.
One Go package may import
a different Go package. The imported
package must have already been compiled; gccgo will read
the import data directly from the compiled package. When this package
is later linked, the compiled form of the package must be included in
the link command.
-I
dir-L
dir-fgo-prefix=
string-frequire-return-statement
-fno-require-return-statement
return
statement.
This warning may be disabled using
-fno-require-return-statement.