Roy Brown ([log in to unmask]) wrote:
: The storage for the subprogram is only assigned *if* it is CALLed, when it
: is first CALLed. It is not assigned at the opening of Main.
No, it doesn't work that way at all for this implementation, unless you
dynamically load a subprogram from a XL with the CALL identifier.
(I'm one of the implementors of COBOLII/iX and I should know.)
What you are possibly talking about is a permissible implementation by the
Standard.
For both main and subprogram the storage is of static duration so it is
there at startup. About the only effect is paging.
I.e. if you don't touch the pages near the variable, you don't bring in
into memory. This works the same for both main or subprogram.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *