CC(1)
NAME
cc − C compiler
USAGE
cc [ options ] ... file ...
DESCRIPTION
Cc is the UNIX C compiler. It interprets arguments with names ending in .c as C source programs, compiles them, and leaves each object program on the file whose name is that of the source with .o substituted for .c. Cc normally deletes the .o file, however, if a single C program is compiled and loaded simultaneously.
The UNIX C compiler is really an interface to the DOMAIN C compiler. Not all standard UNIX options are available. Furthermore, some unique options are provided by the DOMAIN C compiler. The various options that can be used with cc are listed below. Any other arguments are taken to be either loader option arguments, or C-compatible object programs, typically produced by an earlier cc run, or perhaps libraries of C-compatible routines. These programs, together with the results of any compilations specified, are loaded (in the order given) to produce an executable program named a.out. See ld (1) for load-time options. Also refer to the DOMAIN C Language Reference for general information.
OPTIONS
−c Suppress the loading phase of the compilation and force an object file to be produced, even if only one program is compiled.
−w Suppress warning diagnostics.
−O Activate the −OPT option to the DOMAIN C compiler.
−E Run only the macro preprocessor on the named C programs, and send the result to the standard output.
−P Run only the macro preprocessor on the named C programs, and leave the result on corresponding files suffixed with .i.
−o output
Name the final output file output. Leave the a.out file undisturbed.
−Dname=def
−Dname
Define the name to the preprocessor, as if by #define. If no definition is given, define the name as “1”.
−Uname
Remove any initial definition of name.
−Idir Seek #include files with names not beginning with a slash (/). Look first in the directory of the file argument; then in directories named in −I options; and finally, in directories on a standard list.
−Tsystype
Define the target system type (systype) for the compiled object. Systype may be one of
anyversion independant
bsd4.1BSD4.1 UNIX (AUX SR8)
bsd4.2BSD4.2 UNIX (DOMAIN/IX bsd4.2)
sys3UNIX System III (AUX SR8)
sys5UNIX System V (DOMAIN/IX sys5)
−Mid Generate code for a particular class of processor. Values for id are
any Generate code which uses only
the basic instructions supported
by the M68000.
160,460,660 Generate code which uses the
additional instructions
supported by the DNx60
(except the DN560) and DSP160
processors.
90,330,560 Generate code which uses the
additional instructions
supported by the DSP90, DN330,
and DN560 processors.
m020 Generate code for a DSP90, DN330,
and DN560 processor that does not
have a floating-point processor chip.
PEB Generate code for a Performance
Enhancement Board.
−G Force the compiler to be case-insensitive. Using this option is like invoking /com/cc -NMGBL from the Display Manager on a DOMAIN node.
−g Turn on the -DBS option to the DOMAIN C compiler. This produces symbolic debug information.
CAUTIONS
The compiler currently ignores advice to put char, unsigned char, short, or unsigned short variables in registers. It previously produced poor, and in some cases incorrect, code for such declarations.
FILES
file.cinput file
file.oobject file
a.outloaded output
DIAGNOSTICS
The diagnostics produced by C itself are intended to be self-explanatory. Occasional messages may be produced by the assembler or loader.