The Pascal Compiler
19
3
Figure 3-1 shows the sequence of events when you invoke
pc
.
Figure 3-1
Organization of Pascal Compilation
Language Preprocessor
The
cpp
(1) program is the C language preprocessor. The compiler driver
pc
normally calls
cpp
(1) during the first pass of a Pascal compilation. If you use
the
–xl
switch,
pc
calls the alternate preprocessor
cppas
. Then
cpp
(1) and
cppas
operate on files that contain the extension
.p
or
.pas
.
You can give directives to
cpp
(1) or
cppas
to define constants, conditionally
compile parts of your program, include external files, and take other actions.
For example, the following program shows the use of an
include
directive,
which asks
cpp
(1) to copy the named file into the program before compilation.
Compiler
pc
Optimizer
iropt
Compiler
frontend
pc0
Source and
include
files
Compiler
preprocessor
cpp
or
cppas
Code
generator
cg
Symbol con-
flict checking
pc3
Libraries
Link
editor
ld
Executable
a.out
Optimize with
-O[
level
]
option
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......