>In alt.sys.pdp11 Jerome H. Fine <everyone@nospam.com> wrote:
(snip)
I made some modifications to MACRO-11 which counts the
number of times an overlay is read into memory in addition
to the number of times the overlay is called - the difference
being the number of times the overlay was called, but was
already memory. The numbers are displayed at the end
of the listing along with the elapsed time.
I used to know how the overlay for OS/360 worked. I believe
it is only two instructions if the segment is already in
memory. It uses self-modifying code to write the load and
branch instructions to not call the overlay handler.
(Branch to an arbitrary address takes two instructions,
load the address into a register, and then branch.)
I just looked again at the RT-11 overlay handler for low memory