CC(1)
NAME
cc − C compiler
SYNOPSIS
cc [ option ] ... file ...
DESCRIPTION
Cc is the AUX command interface to the DOMAIN C compiler. Cc accepts several types of arguments:
Arguments whose names end with .c are taken to be C source programs; they are compiled, and each object program is left on the file whose name is that of the source with .o substituted for .c. The .o file is normally deleted, however, if a single C program is compiled and loaded all at one go.
In the same way, arguments whose names end with .s are taken to be assembly source programs and are assembled, producing a .o file.
The following options are interpreted by cc . See ld(1) for link editor options.
−c Suppress the link edit phase of the compilation, and force an object file to be produced even if only one program is compiled.
−p Unsupported; produces an error if used.
−f Unsupported; ignored if used.
−g Activates the -DBS option to the DOMAIN C compiler, which produces symbolic DEBUG information.
−dn Unsupported; ignored if used.
−O Activates the -OPT option to the DOMAIN C compiler.
−S Unsupported; produces an error if used.
−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 .i.
−C Unsupported; produces an error if used.
−G Activates the -NMGBL option to the DOMAIN C compiler.
−Dname=def
−Dname
Define the name to the preprocessor, as if by #define. If no definition is given, the name is defined as 1.
−Uname
Remove any initial definition of name. Removes ONLY names made with -D.
−Idir Change the algorithm for searching for #include files whose names do not begin with / to look in dir before looking in the directories on the standard list. Thus, #include files whose names are enclosed in "" will be searched for first in the directory of the file argument, then in directories named in −I options, and last in directories on a standard list. For #include files whose names are enclosed in <>, the directory of the file argument is not searched.
−Bstring
Unsupported; produces an error if used.
−t[p012]
Unsupported; produces an error if used.
−w Suppresses warning messages.
−oname Defines the name of the output even if only one source file is compiled and ld(1) is used.
Other arguments are taken to be either link editor 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 linked (in the order given) to produce an executable program with the name a.out (unless the -o option is used).
FILES
file.c input file
file.o object file
a.out linked output
/usr/include standard directory for #include files
SEE ALSO
B. W. Kernighan and D. M. Ritchie, The C Programming Language, Prentice-Hall, 1978.
B. W. Kernighan, Programming in C−A Tutorial.
D. M. Ritchie, C Reference Manual.
ld(1).
DOMAIN C User’s Guide.
Language Level Debugger Manual.
DIAGNOSTICS
The diagnostics produced by C itself are intended to be self-explanatory. Occasional messages may be produced by the link editor.