CC(1)
NAME
cc − C compiler
USAGE
cc [ options ] ... file ...
DESCRIPTION
Cc is the DOMAIN/IX 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 DOMAIN/IX 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.
−Bname Prefix pathname to cc and bind for substitute compiler and binder passes. If name is empty it is taken to be /usr/lib/o.
−t[p0l] Find only the preprocessor (p), compiler passes (0), or binder (l) in the files whose names are constructed by a −B option. In the absence of a −B option, the name is taken to be /usr/lib/n. The value -t "" is equivalent to -t0l.
−Wc,arg1,[arg2...]
Hand off the arguments argi to pass c where c is one of [p0l] indicating the pre-processor, compiler or the binder.
−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”.
−Mid Generate code for a particular class of processor. Values for id are:
anystandard M68000 code
160
460
660DSP160, DN460, DN 660 code
90
330
560
570
580
3000DSP90, DN330, DN560, DN570, DN580,
DN3000 code
PEBPerformance Enhancement Board
−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 independent
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)
−g Turn on the −DBS option to the DOMAIN C compiler. This produces symbolic debug information.
−p Not supported.
−f Not supported.
−S Not supported.
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
/usr/lib/cc AEGIS C compiler
/usr/lib/bind AEGIS binder
/usr/lib/cpp AEGIS C pre-processor
DIAGNOSTICS
The diagnostics produced by C itself are intended to be self-explanatory. Occasional messages may be produced by the loader.
RELATED INFORMATION
COMMENT
The AEGIS C pre-processor (/usr/lib/cpp) is envoked only if p is given in a −t or −W switch. The −W is a legitimate special case indicating that /usr/lib/cpp should be run. If −p is not given, the C pre-processor in /usr/lib/cc is run.