HP Pascal/iX Programmer's Guide (31502-90023)

B- 7
This section explains:
* The HP-UX
pc
command.
* How to pass run-time parameters to your program.
* How HP-UX handles interrupts.
* How HP-UX handles run-time errors.
pc Command
The HP-UX command
pc
coordinates the HP Pascal compiler
(/usr/lib/pascomp) and the HP-UX linker loader (/bin/ld).
Additionally, the compiler looks for a system-wide file called
/usr/lib/pasopts. If the file exists and is not empty, the compiler
opens and reads the file. The file should contain only directives and
comments. If there is anything else in the file, the compiler emits an
error message. If the file is empty, which is the default, the compiler
does not attempt to open it. For more information on the system-wide
file, refer to the section on compiler options in the
HP Pascal/HP-UX
Reference Manual
.
Syntax
[REV BEG]
pc [
file
] [...]
[
option
]
[REV END]
Parameters
file
At least one file is required.
option
Any of the following instructions to the compiler:
-A Produce warnings when non-ANSI Pascal features
are found (same as ANSI ON).
+a Cause the compiler to generate archived object
(.a) files instead of simple object (.o) files.
This option exists for compatibility with the
Series 300
pc
command.
-C Suppress code generation. No object (.o) files
will be created and linking will be
suppressed. This is effectively a request for
syntax/semantics checking only (same as CODE
OFF).
+C Convert MPE/iX format file names in the compiler
options BUILDINT, INCLUDE, LISTINTR, SPLINTR,
and SYSINTR to HP-UX-format file names. Fully
qualified HP-UX-format file names (those that
begin with slash, like /mnt/srf/file) are not
converted. This option is the same as the
compiler option CONVERT_MPE_NAMES
This option assumes an HP-UX directory structure
that is modeled after the MPE/iX accounting
structure, in which all files reside in
group-level directories and groups are
subdirectories of accounts. This option
converts MPE/iX format file names to lower case
letters.
For example, assume the HP-UX directory