.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" %sccs.include.redist.roff%
.\" @(#)cc.1 6.7 (Berkeley) %G%
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
The `.o' file is normally deleted, however, if a single
C program is compiled and loaded all at one go.
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
Suppress the loading phase of the compilation, and force
an object file to be produced even if only one program is compiled.
Have the compiler produce additional symbol table information
Have the compiler produce additional symbol table information
for the obsolete debugger
Suppress warning diagnostics.
Arrange for the compiler to produce code
which counts the number of times each routine is called.
If loading takes place, replace the standard startup
routine by one which automatically calls
at the start and arranges to write out a
file at normal termination of execution of the object program.
An execution profile can then be generated by
Causes the compiler to produce counting code in the manner of
but invokes a run-time recording mechanism that keeps more
extensive statistics and produces a
file at normal termination.
Also, a profiling library is searched, in lieu of the standard C library.
An execution profile can then be generated by use of
making initialized variables shared and read-only.
Compile the named C programs, and leave the
assembler-language output on corresponding files suffixed `.s'.
Run only the macro preprocessor
requesting it to generate Makefile dependencies
and send the result to the standard output.
Run only the macro preprocessor
on the named C programs, and send the result to the
prevent the macro preprocessor from eliding comments.
Name the final output file
If this option is used the file `a.out' will be left undisturbed.
.Bl -tag -width Ds -compact
If no definition is given, the name is defined as "1".
Remove any initial definition of
whose names do not begin with `/'
sought first in the directory
then in directories named in
then in directories on a standard list.
Library archives are sought first in
then in directories on a standard list.
Use an alternate compiler which does not convert expressions involving
only floats to double. This does not conform to the standard which states
that all intermediate results should be converted to double but does
provide a speed improvement for programs which don't require full double
precision. This option also makes
variables work appropriately.
Find substitute compiler passes in the named path
with the suffixes cpp, ccom and c2.
Find only the designated compiler passes in the
files whose names are constructed by a
to be either loader option arguments, or C-compatible
object programs, typically produced by an earlier
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 with name
.Bl -tag -width /usr/libexec/sccom -compact
Compiler for single precision floats.
Startoff for gprof-profiling.
Standard directory for `#include' files.
File produced for analysis by
File produced for analysis by
.%T "The Programming Language"
.%T "Programming in C \- a tutorial"
The diagnostics produced by C itself are intended to be
Occasional messages may be produced by the assembler
compiler was distributed with
The compiler currently ignores advice to put
variables in registers, except as noted above. It previously
produced poor, and in some cases incorrect, code for such declarations.