Silicon Graphics IRIS Workstation User Manual page 105

Table of Contents

Advertisement

CC(1)
NAME
cc, pc, f77 - C. Pascal and FORTRAN compilers for the 68000
SYNOPSIS
cc [ options ] files...
pc [ options ] files...
f77 [ options ] files...
DESCRIPTION
cc is the UNIX C, Pascal and Fortran compiler for the 68000. It is also avail-
able under the names f77 and pc. The names are synonymous except during
the linking phase, when it is used to create the appropriate run time
environment. cc accepts many types of input files, determined by the file's
suffix. The highest form of input is language source - C (.c), Pascal (.p) or
FORTRAN (.f). These are translated to the language's intermediate format
(68000 assembler (.s), in the case of C, and a special binary format (.j), in the
case of FORTRAN and Pascal), then to UNIX object files (.o), and finally to
an executable file called a.out. Input to cc may consist of any of these types
of files and translation may be stopped at any point.
Translation proceeds as follows:
a)
Each .c. .p and .f input is run through the C macro preprocessor
cpp. In the case of Pascal source, cpp is given the -p switch. This
switch tells cpp to ignore Pascal-style comments and do the correct
things with preprocessor control lines so that the line numbers in
the resultant Pascal file will be the same as the original.
b)
The preprocessed C files are then run through the C compiler ccom
and, if specified, the C optimizer c2. The resulting .s files are then
assembled, producing UNIX binaries (.o).
c)
Preprocessed FORTRAN (.f) and Pascal (.p) files are run through
the appropriate SVS front end, fortran or pascal, then through the code
generator code, producing special binary files (.f). All special binary
files are combined with the FORTRAN/Pascal library and passed to
an object file formatter ulinker, producing a single UNIX object file
(.o).
d)
Finally, all UNIX object files are passed to ld(1), along with the
UNIX startup file /lib/crt0.o. to produce a single executable named
a.out.
Preprocessed source files and assembler files are usually removed. All C
binaries (.o) and special binary files (.f) are preserved, unless there was only
a single input .c file.
If C and FORTRAN files are mixed in a single executable, special interface
routines must be generated as described in Appendix D of the IRIS Worksta-
tion Guide. If C and Pascal procedures are mixed, the user should consult
the SVS Pascal reference manual for instructions on altering the external pro-
cedure declarations in Pascal.
OPTIONS
The following options are interpreted by cc (f77,pc). Some options have
meaning for only one of these languages. (see ld(1) for load-time options):
October 1984
Silicon Graphics
- 1 -
CC(1)
Version 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IRIS Workstation and is the answer not in the manual?

Questions and answers

Table of Contents