Peter Relson wrote:

<snip>
If I didn't have to save/restore R15 and R1, then I could totally get away
with something very close to standard linkage
</snip>

Huh? You can precisely use standard linkage. Standard linkage starts with "save all". It does not require "restore all".

If a service (or protocol) does not specifically tell you to preserve registers 15,0,1 then you do not to do so.
Thanks Peter!

My concern was the words "Unless otherwise defined by the individual interface"
in the z/OS MVS Programming Assembler Services Guide where it describes the
standard linkage; and how that meshes with this text in the ETXD option description ATTACH and ATTACHX in the z/OS MVS Program: Authorized Assembler Services Reference:

 "The exit routine is responsible for saving and restoring the registers".

That would seem to indicate that the ETXR is responsible for saving _and_ restoring? Or, is it open to interpretation? If it's open to interpretation - just what should that interpretation be? Does "the registers" mean "all the registers" or just the standard ones? Does this sentence fall under the "Unless otherwise defined by the individual interface" clause, or is it simply a reminder to follow standard saving/restoring practices?

Some simple specification or improved wording in the doc might be a good idea... it seems unclear to me...


   - Thanks -
  - Dave Rivers -


--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to