C

  1. Do ``man cc'' on your Unix machine to get the man page.

  2. 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.

  3. Options:
    1. -g Produce additional symbol table information for dbx(1) and dbxtool(1). When this option is given, the -O and -R options are suppressed.

    2. -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.

    3. -O[level] Optimize the object code. -O with the level omitted is equivalent to -O2. See the man page for more information.

    4. -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.

    5. -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.

    6. -w Do not print warnings.
  4. Files:
         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