On Fri, Apr 7, 2017 at 10:59 AM, Frank Swarbrick < [email protected]> wrote:
> Are all z/OS XL C/C++ RTL modules just stubs line this? Or is it just > some.? > I did a fast scan, as well as I could, and it sure seems to be most, if not all. Since they are vectoring to some table via GPR12, I would think this means that these routines are in some way managed by the LE system. GPR12 is dedicated, in LE, to addressing the "Common Anchor Area" ( https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceev100/caahd.htm ) offset x'234' is the address of "C/370 Open libvec" https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceev100/ceelsa.htm > > ________________________________ > From: IBM Mainframe Discussion List <[email protected]> on behalf > of Peter Hunkeler <[email protected]> > Sent: Friday, April 7, 2017 12:19 AM > To: [email protected] > Subject: Re: Opinion: Using C "standard library" routines in COBOL. > > > > > The S0C1 is because SYS1.SCEELKED isn’t available for the dynamic calls. > > > > SCEELKED is intended to be used at linkedit/binder/ time, not execution > time. What is statically linked is not the code for the C function, but > only a little stub which finds the way to the code at runtime. In the case > of CUSERID, this is: > > > L 15,X'234'(,12) > L 15,X'560(,15) > BR 15 > > I see no danger of missing an update because static linking is used. > > > > -- > Peter Hunkeler > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." -- Michael McClary, in alt.fusion Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
