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
12- 28
.
.
END.
Another compilation unit:
$EXTERNAL$
PROGRAM show_external (input,output);
VAR
state : Boolean; {Matches variable in show_global's outer block}
{a,b,c,d need not be declared here because this
compilation unit does not use them.}
PROCEDURE proc1;
BEGIN
.
.
.
END;
BEGIN
{Empty outer block}
END.
GPROF
GPROF is a System-Dependent HP-UX Option.
The compiler option GPROF causes the compiler to produce code that
profiles itself as it runs. You can analyze the profiles with the HP-UX
utility gprof.
Syntax
$GPROF {ON }$
{OFF}
Default OFF.
Location Anywhere before the keyword PROGRAM (illegal in
modules).
Example
$GPROF ON$
PROGRAM a;
PROCEDURE b;
BEGIN
END;
BEGIN
b;
END;
NOTE A program containing the GPROF compiler option must be linked with
the
pc
option -G.
HEAP_COMPACT
HEAP_COMPACT is an HP Pascal Option.
When the HEAP_COMPACT compiler option is ON (and the HEAP_DISPOSE option
is also ON), free space in the heap is concatenated when the predefined