home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
gnu
/
info
/
gcc.info-5
(
.txt
)
< prev
next >
Wrap
GNU Info File
|
1994-02-20
|
50KB
|
867 lines
This is Info file gcc.info, produced by Makeinfo-1.55 from the input
file gcc.texi.
This file documents the use and the internals of the GNU compiler.
Published by the Free Software Foundation 675 Massachusetts Avenue
Cambridge, MA 02139 USA
Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided also
that the sections entitled "GNU General Public License" and "Protect
Your Freedom--Fight `Look And Feel'" are included exactly as in the
original, and provided that the entire resulting derived work is
distributed under the terms of a permission notice identical to this
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that the sections entitled "GNU General Public
License" and "Protect Your Freedom--Fight `Look And Feel'", and this
permission notice, may be included in translations approved by the Free
Software Foundation instead of in the original English.
File: gcc.info, Node: Installation, Next: C Extensions, Prev: Invoking GCC, Up: Top
Installing GNU CC
*****************
Here is the procedure for installing GNU CC on a Unix system.
* Menu:
* Other Dir:: Compiling in a separate directory (not where the source is).
* Cross-Compiler:: Building and installing a cross-compiler.
* PA Install:: See below for installation on the HP Precision Architecture.
* Sun Install:: See below for installation on the Sun.
* 3b1 Install:: See below for installation on the 3b1.
* Unos Install:: See below for installation on Unos (from CRDS).
* VMS Install:: See below for installation on VMS.
* WE32K Install:: See below for installation on the 3b* aside from the 3b1.
* MIPS Install:: See below for installation on the MIPS Architecture.
* Collect2:: How `collect2' works; how it finds `ld'.
* Header Dirs:: Understanding the standard header file directories.
You cannot install GNU C by itself on MSDOS; it will not compile
under any MSDOS compiler except itself. You need to get the complete
compilation package DJGPP, which includes binaries as well as sources,
and includes all the necessary compilation tools and libraries.
1. If you have built GNU CC previously in the same directory for a
different target machine, do `make distclean' to delete all files
that might be invalid. One of the files this deletes is
`Makefile'; if `make distclean' complains that `Makefile' does not
exist, it probably means that the directory is already suitably
clean.
2. On a System V release 4 system, make sure `/usr/bin' precedes
`/usr/ucb' in `PATH'. The `cc' command in `/usr/ucb' uses
libraries which have bugs.
3. Specify the host and target machine configurations. You do this by
running the file `configure' with appropriate arguments.
If you are building a compiler to produce code for the machine it
runs on, specify just one machine type, with the `--target'
option; the host type will default to be the same as the target.
(For information on building a cross-compiler, see *Note
Cross-Compiler::.) Here is an example:
configure --target=sparc-sun-sunos4.1
If you run `configure' without specifying configuration arguments,
`configure' tries to guess the type of host you are on, and uses
that configuration type for both host and target. So you don't
need to specify a configuration, for building a native compiler,
unless `configure' cannot figure out what your configuration is.
A configuration name may be canonical or it may be more or less
abbreviated.
A canonical configuration name has three parts, separated by
dashes. It looks like this: `CPU-COMPANY-SYSTEM'. (The three
parts may themselves contain dashes; `configure' can figure out
which dashes serve which purpose.) For example,
`m68k-sun-sunos4.1' specifies a Sun 3.
You can also replace parts of the configuration by nicknames or
aliases. For example, `sun3' stands for `m68k-sun', so
`sun3-sunos4.1' is another way to specify a Sun 3. You can also
use simply `sun3-sunos', since the version of SunOS is assumed by
default to be version 4. `sun3-bsd' also works, since `configure'
knows that the only BSD variant on a Sun 3 is SunOS.
You can specify a version number after any of the system types,
and some of the CPU types. In most cases, the version is
irrelevant, and will be ignored. So you might as well specify the
version if you know it.
Here are the possible CPU types:
a29k, alpha, arm, cN, clipper, elxsi, h8300, hppa1.0, hppa1.1,
i370, i386, i486, i860, i960, m68000, m68k, m88k, mips,
ns32k, pyramid, romp, rs6000, sh, sparc, sparclite, vax,
we32k.
Here are the recognized company names. As you can see, customary
abbreviations are used rather than the longer official names.
alliant, altos, apollo, att, bull, cbm, convergent, convex,
crds, dec, dg, dolphin, elxsi, encore, harris, hitachi, hp,
ibm, intergraph, isi, mips, motorola, ncr, next, ns, omron,
plexus, sequent, sgi, sony, sun, tti, unicom.
The company name is meaningful only to disambiguate when the rest
of the information supplied is insufficient. You can omit it,
writing just `CPU-SYSTEM', if it is not needed. For example,
`vax-ultrix4.2' is equivalent to `vax-dec-ultrix4.2'.
Here is a list of system types:
aix, acis, aos, bsd, clix, ctix, dgux, dynix, genix, hpux,
isc, linux, luna, lynxos, mach, minix, newsos, osf, osfrose,
riscos, sco, solaris, sunos, sysv, ultrix, unos, vms.
You can omit the system type; then `configure' guesses the
operating system from the CPU and company.
You can add a version number to the system type; this may or may
not make a difference. For example, you can write `bsd4.3' or
`bsd4.4' to distinguish versions of BSD. In practice, the version
number is most needed for `sysv3' and `sysv4', which are often
treated differently.
If you specify an impossible combination such as `i860-dg-vms',
then you may get an error message from `configure', or it may
ignore part of the information and do the best it can with the
rest. `configure' always prints the canonical name for the
alternative that it used.
Often a particular model of machine has a name. Many machine
names are recognized as aliases for CPU/company combinations.
Thus, the machine name `sun3', mentioned above, is an alias for
`m68k-sun'. Sometimes we accept a company name as a machine name,
when the name is popularly used for a particular machine. Here is
a table of the known machine names:
3300, 3b1, 3bN, 7300, altos3068, altos, apollo68, att-7300,
balance, convex-cN, crds, decstation-3100, decstation, delta,
encore, fx2800, gmicro, hp7NN, hp8NN, hp9k2NN, hp9k3NN,
hp9k7NN, hp9k8NN, iris4d, iris, isi68, m3230, magnum, merlin,
miniframe, mmax, news-3600, news800, news, next, pbd, pc532,
pmax, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3,
sun4, symmetry, tower-32, tower.
Remember that a machine name specifies both the cpu type and the
company name.
There are four additional options you can specify independently to
describe variant hardware and software configurations. These are
`--with-gnu-as', `--with-gnu-ld', `--with-stabs' and `--nfp'.
`--with-gnu-as'
If you will use GNU CC with the GNU assembler (GAS), you
should declare this by using the `--with-gnu-as' option when
you run `configure'.
Using this option does not install GAS. It only modifies the
output of