HP Pascal/iX Reference Manual (31502-90022)

12- 52
Example
$LONG_CALLS 1$
program call;
procedure p_r(x:real); external;
begin
p_r(1.5);
end.
MAPINFO
MAPINFO is an HP Pascal Option.
The compiler option MAPINFO prints information for array and record
types.
Syntax
$MAPINFO {ON }$
{OFF}
Default OFF
Location Anywhere.
The information printed with the MAPINFO option is the same as that
printed with the TABLES option set to ON (see "TABLES" in this
chapter.) However, MAPINFO prints this information at the same time the
type is declared instead of at the end of the scope in which the type is
declared. In addition, MAPINFO prints the minimum alignment of the
structured type.
Example
The example below shows a listing of PROGRAM p created with the MAPINFO
option.
$MAPINFO ON$
PROGRAM p;
TYPE
rec = RECORD
f1 : integer;
f2 : integer;
END;
REC MAX RECORD SIZE = x8 bytes
F1 x0.0 @ 4.0
F2 x4.0 @ 4.0
MIN ALIGNMENT = x4 byte
BEGIN
END;
In the example above, the x indicates hexadecimal notation is being used.
The table below further explains how to interpret the information
generated by MAPINFO.
------------------------------------------------------------------------------------------
| |
| Relative Starting Position Storage Size |
| |
------------------------------------------------------------------------------------------
| |
| x
bytes.bits
@
bytes.bits
|
| |
------------------------------------------------------------------------------------------
MLIBRARY