>>>OTH - if this module makes no system calls or other subroutine calls, then 
>>>it does not need a save area of its own, so it can use the caller's 
>>>provided area

[snip]

>>The question is not whether or not the code *can* use the caller's save area.
>>The code *shall* use the caller's save area to save the caller's register 
>>content.
>
>That is one way to save the caller's registers, not the only documented 
>Linkage Convention.

You're absolutely right. But I didn't mean to place the emphasis on that part. 
What I wanted 
to place the emphasis on is the fact that the statement cited above states that:

  *if* the code does not need an own new save area, because it makes no "calls",
  *then* it can use the caller's save area.

... and this is false. The code shall save the caller's registers and it *can* 
use the
SA provided by the caller or some other mechanisms like BAKR. This is entirely
independent of the fact whether or not it makes "calls".

--
Peter Hunkeler

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

Reply via email to