L::>AD 2. Unless the NOMAP option is specified, a load map is created on the A-disk each time the LOAD command is issued. A load map is a file
that contains the location of control sections and entry points of
files loaded into storage. This load map is named LOAD MAP AS.
Each time LOAD is issued, a new LOAD MAP file replaces any previous LOAD MAP file.
If invalid card images exist in the file or files that are being
loaded, they are listed with the message INVALID CARD in the LOAD MAP file. To suppress this listing in the load map, use the NOINV option.
If Replace (REP) statements exist in the file being loaded, they
are included in the LOAD MAP file. To suppress this listing of REP statements, specify the NOREP option.
If the ENTRY or LIBRARY control cards are encountered in the
file, the load map contains an entry: CONTROL CARD-
listing the card that was read.
Mapping of any common areas that exist in the loaded files will
occur when the program is prepared for execution by the START or GENMOD command or by the START option of the LOAD or INCLUDE command. An updated load map may be displayed prior to program
execution if the START command is issued with the NO option to
suppress execution.
3. Duplicate CSECTs (control sections) are bypassed by the loader. Only the first CSECT encountered is physically loaded. The
duplicates are not loaded. A warning message is displayed at your
terminal if you specified the DUP option. If a section contains an ADCON that references a duplicate CSECT that has not been loaded,
that ADCON may be resolved incorrectly. 4. The loader selects the entry point for the loaded program according
to the following hierarchy: From the parameter list on the START command From the last RESET operand in a LOAD or INCLUDE command From the last ENTRY statement in the input From the last LDT statement in the input From the first
that specifies
input
assembler- or compiler-produced END statement
an entry point if no ENTRY statement is in the From the first byte of the first control section of the loaded
program if there is no ENTRY statement and no assembler-or
compiler-produced END statement specifying an entry point
5. The LOAD command should not be used to execute programs containing DOS macros. To link-edit and execute programs in the CMS/DOS environment, use the DOSLKED and FETCH commands.
6. See Figure 9 for an illustration of the loader search order. The
loader uses this search order to locate the filename on the LOAD and INCLUDE command lines, as well as in the handling of unresolved
references.
122 VM/37Q CMS Command and Macro Reference
r= 1 I ase standard search order to find TEXT filesl I specified by fn; also, if LIBE is in effect I search TXLIBs defined by the GLOBAL command I Usa standard search order to locate files I with a filetype of TEXT and a filename that I corresponds to the unresolved reference '-- 1< V · * · .
* Any *
*
unresolved
* NO *
references
*
*
?
*
* · · *
* IYES V · * · *
Is
*
* NOLIBE * YES *
specified
*
*
?
*
* · *
* INO V ,
Continue to search active text libraries to I resolve external references in the loaded , text. Files are searched in the order that I I they are entered in the command. , L-- I V I Search complete L- Figure q. Loader Search Order r-------, I Search >1 complete ---, 1 I , I I I I I I 1 -..I r 1 Search
>t complete
L -.I r --, 1 Search , >1 complete 1 L ______ --!I LOAD Section 2. CMS Commands 123
Previous Page Next Page