Program Loaded
in Memory
Source Program Compile-and-Go
Deck Translator (e.g.
Assembler)
Assembler
Limitations
MAIN
Absolute MAIN
Loader
SQRT
SQRT
Limitations
• Programmer has to specify to the
assembler where to load the program.
• In case of multiple subroutines,
programmer has to remember each
address, and use it explicitly in other
subroutines.
• Change in one subroutine can cause a
change to other subroutines also.
Subroutine Linkage
(Use of EXTRN)
MAIN START
EXTERN SUBROUT
------
------
L 15,=A(SUBROUT)
BALR 14,15
……
END
SUBROUT START
USING *,15
………
BR 14
END
ASSEMBLER LINKAGE PSEUDO-OPS
(Use of Entry pseudo-op)
B1 -------
B2 -------
Uses of Multiple Entry Points are:
• Common coding
• Colleting together related routines for
convenience.
• Better or convenient access to common
data base.