This thread seems to nave diverged into ASSEMBLER-LIST and
IBM-MAIN.  I'm extending the topic.  A contributor said in
ASSEMBLER LIST:

    ... I am trying to decide to convert it to baseless or write an
    assembler stub and redo the exit in C.

In a perfect universe, a stub would be needless.

About 40 years ago, before I had any OS/360 exposure, an Expert
boasted to me that the calling conventions of OS were absolutely
homogeneous -- a subroutine in any language could be called from
any other language, or as a main program alike.  (I was skeptical --
I asked, "LISP?  SNOBOL4?"  My mentor replied, "Of course!")

What have we lost?

With XA, the facility was mostly preserved: CSECTs were marked
AMODE 24 or AMODE 31; would be entered in the correct AMODE,
and would return to a caller in the caller's mode via BSM.

So, daydream/wishlist item:  It should be made possible to mark
a load module as LE-mode so ATTACH or an EXIT interface would
seamlessly enter an exit written in LE C (not just Metal C) and the
exit return smoothly.

Would Metal C remove the need for an Assembler stub?

-- gil

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

Reply via email to