HP Pascal/iX Reference Manual (31502-90022)

12- 2
Table 12-1. Compiler Option Locations and Scopes
---------------------------------------------------------------------------------------
| | | |
| Location Term | Option Location | Option Scope |
| | | |
---------------------------------------------------------------------------------------
| | | |
| Anywhere. | Anywhere in the program. | Depends upon the option. |
| | | |
---------------------------------------------------------------------------------------
| | | |
| At front. | Before PROGRAM or MODULE in | Applies to the entire source |
| | the source file. | file. |
| | | |
---------------------------------------------------------------------------------------
| | | |
| Not in body. | Not between BEGIN and END. | Applies to the routine that |
| | (preferably immediately before | contains it. |
| | BEGIN or the procedure | |
| | heading). | |
| | | |
---------------------------------------------------------------------------------------
| | | |
| Statement. | Anywhere in the program. | Applies to the statements |
| | | following it. |
| | | |
---------------------------------------------------------------------------------------
| | | |
| Heading. | In a routine heading, after | Applies to the routine that |
| | PROCEDURE or FUNCTION, but | contains it. |
| | before the body or directive. | |
| | | |
---------------------------------------------------------------------------------------
A compiler option list begins with a dollar sign ($), contains one or
more compiler options, and ends with a dollar sign. It must fit on a
single line.
Syntax
$
option
[{,}
option
]...$
[{;} ]
Parameter
option
Any compiler option described in this chapter;
however, options with incompatible locations cannot
appear in the same list.
Example
$LIST OFF$
$ANSI OFF, LIST ON$
$PARTIAL_EVAL ON, ASSUME 'PASCAL_FEATURES', LINES 50$
NOTE Unrecognized compiler options do not cause compilation errors.
System-Independent Options
System-independent options work the same way whether HP Pascal is running
on the MPE/iX operating system or the HP-UX operating system. These
options fall into the following three categories:
Category Associated With
HP Standard options HP Standard Pascal
HP Pascal options HP Pascal
System programming options System programming extensions
Figure 12-1 shows the relationship between ANSI Standard Pascal and