HP Pascal/HP-UX Release Notes Version A.10.08

50 Chapter 1
New and Changed Features
Porting HP Pascal/HP-UX Programs
Compiler Options
The HP Pascal/HP-UX compilers support a wide range of compiler
options. Some options are identical on all systems. Some options are
unique to a particular system. Some options have different semantics
and slightly different syntax from one system to the other. For portable
code, keep compiler options to a minimum and avoid options that affect
the semantics of the language or enable system level programming
extensions. For example, avoid using the $SYSPROG$ option on the Series
300/400.
Table 1-9 lists options that are specific to Series 300/400 as well as
options that have the same name on Series 700/800 but different
semantics.
Table 1-9 Compiler Options Specific to Series 300/400
Compiler Option Effect
ALLOW_PACKED Allows ANYVAR parameter passing of fields in packed records and
arrays, and SIZEOF using packed fields and arrays.
ANSI
a
The compiler issues an error message when it encounters a
feature in the source code that is illegal in ANSI/ISO Standard
Pascal. It must be placed at the top of the file.
CODE
a
Selects whether a code file is generated. This option is not allowed
within a procedure body.
CODE_OFFSETS
a
Causes PC offsets to be included in the listing. This option is not
allowed within a procedure body.
DEBUG Causes line number debugging information to be included in the
object code.
FLOAT_HDW Controls generation of code for floating-point hardware.
IF/ELSE/ENDIF
a
Controls conditional compilation. Refer to the HP Pascal/HP-UX
Reference Manual; for the Series 300/400 for details.
LINENUM Sets listing line number.
LINES
a
Specifies number of lines per page on a listing. Default value is 60.
LITERAL_ALIAS
a
Determines the case-sensitivity of an alias name.