LOCALITY [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
LOCALITY
LOCALITY is an HP Pascal Option.
The LOCALITY compiler option specifies a locality name to be associated
with the code for all subsequent routines until the next LOCALITY option.
The compiler puts the locality name in the object file.
Syntax
$LOCALITY string$
Parameter
string Specifies a locality name for the object code. The
compiler does not distinguish between uppercase and
lowercase letters in string.
Default The nameless locality.
Location Anywhere.
Using locality names can improve the performance of a program in cases
where calling a routine in the same locality can require fewer
instructions and fewer page faults than calling a routine in a different
locality. If you use $LOCALITY and want to go back to using default
locality, use $LOCALITY `CODE'$. Refer to LINKEDITOR manuals for
details.
Example
$LOCALITY 'Sample'$
PROGRAM show_locality;
PROCEDURE proc1;
BEGIN
.
.
END;
BEGIN
.
.
proc1;
.
.
END.
MPE/iX 5.0 Documentation