Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cc(1) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

adb(1)

ar(1)

as(1)

gprof(1)

ld(1)

prof(1)

ranlib(1)

CC(1)

make(1)

monitor(3c)



CC(1)                   COMMAND REFERENCE                   CC(1)



NAME
     cc - C compiler

SYNOPSIS
     cc [ -c ][ -go ][ -o output ][ -p ][ -pg ][ -t[p012] ][ -w
     ][ -B string ][ -C ][ -Dname=def ][ -Dname ][ -E ][ -Idir ][
     -M ][ -O ][ -R ][ -S ][ -Uname ][ -llibrary ] filename...

DESCRIPTION
     Cc is the UTek 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.

     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 with name
     a.out.

OPTIONS
     The following options are interpreted by cc:

     -c  Suppress the loading phase of the compilation, and force
         an object file to be produced even if only one program
         is compiled.

     -go Have the compiler produce additional symbol table
         information for adb (1) or sdb (1).

     -llibrary
         Pass the given library to ld.  The option -lc is the
         last to be passed on to ld.  This option must be given
         after the filenames on the command line.  See ld (1) for
         more detail about load-time options.

     -o output
         Name the final output file output.  If this option is
         used the file a.out will be left undisturbed.

     -p  Arrange for the compiler to produce code which counts



Printed 10/17/86                                                1





CC(1)                   COMMAND REFERENCE                   CC(1)



         the number of times each routine is called.  If loading
         takes place, replace the standard startup routine by one
         which automatically calls monitor (3c) at the start and
         arranges to write out a mon.out file at normal
         termination of execution of the object program.  Also, a
         profiling library is searched, in lieu of the standard C
         library.  An execution profile can then be generated by
         use of prof (1).

     -pg Causes the compiler to produce counting code in the
         manner of -p, but invokes a run-time recording mechanism
         that keeps more extensive statistics and produces a
         gmon.out file at normal termination.  An execution
         profile can then be generated by use of gprof (1).

     -t[p012]
         Find only the designated compiler passes in the files
         whose names are constructed by a -B option.  In the
         absence of a -B option, the string is taken to be
         /usr/c/.

     -w  Suppress warning diagnostics.

     -Bstring
         Find substitute compiler passes in the files named
         string with the suffixes cpp, ccom, and c2.  If string
         is empty, use a standard backup version.

     -C  Prevent the macro preprocessor from eliding comments.

     -Dname=def

     -Dname
         Define the name to the preprocessor, as if by #define.
         If def is not given, the name is defined as 1.

     -E  Run only the macro preprocessor on the named C programs,
         and send the result to the standard output.

     -M  Run only the macro preprocessor on the named C programs,
         and have it generate a make (1) dependency list.

     -Idir
         #include files whose names do not begin with a slash /
         are always sought first in the directory of the filename
         argument, then in directories named in -I options, then
         in directories on a standard list.

     -O  Invoke an object-code improver.

     -R  Passed on to as, making initialized variables shared and
         read-only.



Printed 10/17/86                                                2





CC(1)                   COMMAND REFERENCE                   CC(1)



     -S  Compile the named C programs, and leave the assembler-
         language output on corresponding files suffixed .s.

     -Uname
         Remove any initial definition of name.

FILES
     file.c                   input file

     file.o                   object file

     file.a                   object code archive file

     a.out                    loaded output (default)

     /tmp/ctm??????           temporary

     /lib/cpp                 preprocessor

     /lib/ccom                compiler

     /lib/c2                  optional optimizer

     /lib/crt0.o              runtime startoff

     /lib/mcrt0.o             startoff for profiling

     /usr/lib/gcrt0.o         startoff for gprof(1)-profiling

     /lib/libc.a              standard library, see intro(3)

     /usr/lib/libc_p.a        profiling library, see intro(3)

     /usr/include             standard directory for #include
                              files

     mon.out                  file produced for analysis by
                              prof(1)

     gmon.out                 file produced for analysis by
                              gprof(1)

DIAGNOSTICS
     The diagnostics produced by C itself are intended to be
     self-explanatory. Messages labelled cpp are generated during
     the preprocessing phase and messages labelled ccom are
     generated during the compilation phase.  Occasional messages
     may be produced by the assembler or loader. These are
     labelled as and ld respectively.

SEE ALSO
     adb(1), ar(1), as(1). gprof(1), ld(1), prof(1), ranlib(1),



Printed 10/17/86                                                3





CC(1)                   COMMAND REFERENCE                   CC(1)



     make(1), monitor(3c).






















































Printed 10/17/86                                                4





































































%%index%%
na:72,51;
sy:123,629;
de:752,1123;
op:1875,1012;3031,2558;5733,229;
fi:5962,1299;
di:7261,451;
se:7712,177;8033,106;
%%index%%000000000150

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026