r-----------------------------------------------------------,
A (RootPhase) I I I I I rl--------------------,<-------------Location xxxxxxi I I I I I I I IC I IB I I I yyyyyyl I ID I I I I IE I I Figure 2. An Overlay Structure
The overlay structure shown in Figure 42 could be prestructured using
the following sequence of commands(programs A, E, C, D, and E are the
names ofTEXT files; the overlay phases will be named Root, Second,
Third, etc .. ):LOAD A B GENMOD ROOT (FROM A TO B STR) GENMOD SECOND (FROM B) LOAD MOD ROOT INCLUDE C D GENMOD THIRD (FROM C TO D) GENMOD FOURTH (FROM D) LOADMOD THIRD INCLUDE E GENMOD FIFTH (FROM E)
Theprogrammer need not know the storage address where each phase
begins.. ATEXT file can be made to load at the proper address by
reloading earlier phases. In the foregoing example, the command
sequences,"LOADMOD ROOT/INCLUDE C D" and "LOADMOD THIRD/INCLUDE E," cause TEXT files C, D, and E to load at the proper addresses.
If the root phase contains address constants to the other phases, one
copy of the root must be kept in storage while each of the other phases
is brought in by theLOAD or INCLUDE commands without an intervening GENMOD. The root phase is then processed by GENMOD after all address
constants have been satisfied. In this case, the programmer must know
the address where nonroot phases begin (in Figure 41, locations xxxxxx
and yyyyyy). The following sequence of commands could be used:LOAD A B GENMOD SECOND (FROM B) INCLUDE C D (ORIGIN xxxxxx) GENMOD THIRD (FROM C TO D) GENMOD FOURTH (FROM D) INCLUDE E (ORIGIN yyyyyy) GENMOD FIFTH (FROM E) LOAD A B INCLUDE C D (ORIGIN xxxxxx) INCLUDE E (ORIGIN yyyyyy) GENMOD ROOT (FROM A TO C STR) 324 IBM VM/370 System Programmer's Guide
A (Root
The overlay structure shown in Figure 42 could be prestructured using
the following sequence of commands
names of
Third, etc .. ):
The
begins.. A
reloading earlier phases. In the foregoing example, the command
sequences,
If the root phase contains address constants to the other phases, one
copy of the root must be kept in storage while each of the other phases
is brought in by the
constants have been satisfied. In this case, the programmer must know
the address where nonroot phases begin (in Figure 41, locations xxxxxx
and yyyyyy). The following sequence of commands could be used: