SAVE_LOCALS Directive [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Reference
SAVE_LOCALS Directive
The SAVE_LOCALS directive automatically saves any local variables
encountered. This is the same as specifying SAVE in each subprogram of
each source file. This directive forces static storage for all local
variables in order to provide a convenient path for importing FORTRAN 66
and 77 programs that were written to depend on static allocation of
memory (that is, variables retaining their values between invocations of
the respective program units).
Syntax
$SAVE_LOCALS [ON ]
[OFF]
Default Off; local variables are not automatically saved.
Location The SAVE_LOCALS directive must appear before any
nondirective statements in the program unit,
including the program head.
Toggling/ Duration Cannot be toggled after the appearance of
nondirective statements in the program unit.
MPE/iX 5.0 Documentation