Installation guide
• Other programming tools, including ar, cflow, ctags, cxref, dis,
file, lex, lint, make, nm, odump, pixie, prof, pixstats, size,
stdump, strip, and yacc
This section gives an overview of only the DIGITAL UNIX C preprocessor
and C compiler, because they are part of the DIGITAL UNIX product. In
addition, other compilers, such as DIGITAL Fortran and DIGITAL Pascal,
are available for use on the DIGITAL UNIX system.
_______________________ Note _______________________
The ULTRIX RISC programming environment for Version 4.3A
and higher systems use the MIPS Version 3.0 compilation
system, as does the DIGITAL UNIX system. Earlier versions of
ULTRIX RISC programming environments were based on the
MIPS Version 2.10 compiler.
6.3.1 The C Preprocessor
The C preprocessor (cpp) on DIGITAL UNIX systems is similar to the
preprocessor (cpp) on ULTRIX systems. Like the ULTRIX preprocessor, the
DIGITAL UNIX preprocessor interprets directives, such as #include and
#define. The syntax for specifying directives is the same as the syntax on
ULTRIX systems.
The DIGITAL UNIX system defines a number of preprocessor symbols.
Some of these symbols are different from the equivalent symbol on an
ULTRIX system. For information about DIGITAL UNIX predefined
symbols, see Section 7.4.1.
6.3.2 The C Compiler
Like the ULTRIX C compiler driver, the DIGITAL UNIX C driver performs
several tasks. You can enter the cc command to run the C preprocessor, the
C compiler, or the linker. Normally, you use the cc command to run all
three tools and to compile and link your application. Like most ULTRIX C
compilers, the DIGITAL UNIX C compiler supports optimizing code. In
addition, the compiler supports DIGITAL UNIX features, such as linking
with shared libraries and creating function prototypes. (For more
information about the features and general use of the compiler, see the
Programmer’s Guide.)
For compatibility with ULTRIX compilers, the DIGITAL UNIX compiler
supports several modes for compiling applications. You choose which mode
6–6 Overview of the DIGITAL UNIX Programming Environment