HP Pascal/iX Programmer's Guide (31502-90023)
B- 12
-W
c,arg1
Cause
arg1
through
arg
n to be handed off to
[,arg2,...
subprocess
c
. The
arg
parameters are of the
argn]
form:
-
argoption
[,
argvalue
]
where
argoption
is the name of an option
recognized by subprocess
c
and
argvalue
is a
parameter for
argoption
(if it has one). The
parameter
c
can have these values:
Value Meaning
c Compiler body (standard suffix is
pascomp
).
0 Same as
c
.
d Driver program.
l Linker (standard suffix is
ld
).
For example, the specification to pass the
-r
option (preserve rotation information) to the
linker is
-Wl,-r
.
-Y Enable 16-bit Native Language Support when
parsing string literals and comments (same as
the compiler option NLS_SOURCE). Note that 8-bit
parsing is always supported.
Other options--instructions to the linker--are
also allowed. See
pc(1)
in the
HP-UX Reference
for details.
-y Generate additional information needed by static
analysis tools and ensure that the program is
linked as required for static analysis. This
option is incompatible with optimization.
+z, +Z Both of these options cause the compiler to
generate position independent code (PIC) for use
in building shared libraries. However, you must
use +z to generate PIC, unless certain limits
are exceeded. Use +Z when limits are exceeded.
If both +z and +Z are specified, only the last
one encountered will apply. Note that +z is the
same as $SHLIB_CODE ON$ and +Z is the same as
$SHLIB_CODE 2$.
The options -G and -p are ignored if you use
either +Z or +z.
For more information about PIC , refer to
Programming on HP-UX
.
file
The name of a
textfile
that contains source code for an HP Pascal
program, or the name of an object file. The
textfile
name ends
with
.p
; the object file name ends with
.o
.
For each
textfile
, the
pc
command calls the HP Pascal compiler,
which tries to compile it. If the compiler compiles the
textfile
named prog1.p without errors, it produces an object file named
prog1.o (which resides in the current directory).
If each
textfile
compiles successfully, the
pc
command calls the
HP-UX Linker Loader,
ld
, which links all of the object files (
pc
command parameters and those resulting from compiles) into the
final program file.
If prog.p is the only file parameter of a particular
pc
command,