+2 Full C/C++ does require LE or XPLINK linkage, but there is a macro and it is not difficult at all. And once you have done one, the next one is trivial. And you have to remember how C linkage works in general. If you call some assembler declared as
void FOO(int x, char y[]) the assembler code gets R1 pointing to (+0) the address of a temporary copy of x and (+4) the address of y. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Steve Smith Sent: Tuesday, February 6, 2018 9:59 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: RDJFCB function in C++ +1 C's support for imbedded assembler is sometimes useful for a very few instructions. I've attempted ATTACH in imbedded asm code, and the result was hideodious (and I found a bug anyway). The linkage for Metal C is quite standard and easy to use, plus you get stack space, so there's usually no need for GETMAIN. "Full" C may require LE conventions, although there may be options. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN