HP 3000 Manuals

Ch 12. Compiler Options [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

Chapter 12  Compiler Options 

Introduction 

This chapter explains every HP Pascal compiler option.  Compiler options
fall into two categories:  system-independent and system-dependent.
System-independent options work the same way whether HP Pascal is running
on the MPE/iX operating system or the HP-UX operating system.
System-dependent options either work on only one operating system, or
they work differently on HP-UX and MPE/iX. The following table
categorizes the compiler options.

System-Independent Options                          System-Dependent Options 

ALIAS                     MLIBRARY                  CONVERT_MPE_NAMES
ALIGNMENT                 NOTES                     CALL_PRIVILEGE
ANSI                      OPTIMIZE                  EXEC_PRIVILEGE
ARG_RELOCATION            OS                        FONT
ASSERT_HALT               OVFLCHECK                 GPROF
ASSUME                    PAGE                      HP3000_16[REV BEG]
BUILDINT                  PAGEWIDTH                 HP3000_32
CHECK_ACTUAL_PARM         PARTIAL_EVAL              HP_DESTINATION
CHECK_FORMAL_PARM         POP                       INCLUDE[REV END]
CODE                      PUSH                      INCLUDE_SEARCH
CODE_OFFSETS              RANGE                     NLS_SOURCE
COPYRIGHT                 S300_EXTNAMES             RLFILE
COPYRIGHT_DATE            SEARCH                    RLINIT
ELSE                      SET                       SHLIB_CODE
ENDIF                     SKIP_TEXT                 SHLIB_VERSION
EXTERNAL                  SPLINTR                   SYMDEBUG
EXTNADDR                  STANDARD_LEVEL
GLOBAL                    STATEMENT_NUMBER
HEAP_COMPACT              STDPASCAL_WARN
HEAP_DISPOSE              STRINGTEMPLIMIT
IF                        SUBPROGRAM
INLINE                    SYSINTR
INTR_NAME                 SYSPROG
KEEPASMB                  TABLES
LINES                     TITLE
LIST                      TYPE_COERCION
LIST_CODE                 UPPERCASE
LISTINTR                  VERSION
LITERAL_ALIAS             VOLATILE
LOCALITY                  WARN
LONG_CALLS                WIDTH
MAPINFO                   XREF

Each compiler option entry in this chapter gives the option's default
value (if any) and location.  Table 12-1  defines the terms that
describe option location (in terms of both option location and scope). 

          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.


MPE/iX 5.0 Documentation