HP Pascal/iX Reference Manual (31502-90022)
Table Of Contents
- Top of Document
- Preface
- Chapter 1 Introduction
- Chapter 2 Language Elements
- Chapter 3 Data Types
- Chapter 4 Expressions
- Chapter 5 The Declaration Section
- Chapter 6 Statements
- Chapter 7 Program Structure
- Chapter 8 Procedures and Functions
- Chapter 9 Standard Routines
- Chapter 10 Input and Output
- Chapter 11 System Programming Extensions
- Chapter 12 Compiler Options
![](/manual/hp/mpe-ix-7-5-operating-system/hp-pascalix-reference-manual-31502-90022/images/img-230.png)
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