man cc
'' on your Unix machine to get the man page.
cc
is the C compiler. It translates programs written in
C programming language into executable load modules.
cc
accepts several types of filename arguments. For instance,
files with names ending in .c
are taken to be C source
programs. They are compiled, and each resulting object program is
placed in the current directory. The object file is named after its
source file - the suffix .o
replacing .c
in the name of
the object.
-g
Produce additional symbol table information for
dbx(1)
and dbxtool(1)
. When this option is given, the
-O
and -R
options are suppressed.
-o outputfile
Name the output file
outputfile
. outputfile
must have the appropriate suffix
for the type of file to be produced by the compilation.
outputfile
cannot be the same as source file.
-O
[level] Optimize the object code. -O
with the
level omitted is equivalent to -O2
. See the man page for more
information.
-p
Prepare the object code to collect data for
profiling with prof(1)
. Invokes a run-time recording mechanism
that produces a mon.out
file.
-pg
Prepare the object code to collect data for
profiling with gprof(1)
. Invokes a run-time recording mechanism
that produces a gmon.out
file.
-w
Do not print warnings.
a.out executable output file file.a library of object files file.c C source file file.i C source file after preprocessing with cpp(1) file.il inline expansion file file.o object file