1. If you're using register notation inside PARAM than you need both pairs of parentheses.
2. You can only use register notation on the execut form 3. Does register notation in PARAM accept symbols or only actual numbers? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Fabio Massimo Ottaviani [[email protected]] Sent: Tuesday, November 22, 2022 12:20 PM To: [email protected] Subject: R: Assembler program attaching a C program Thanks to all of you for the interesting suggestions This is the compiler we use PGM=CCNDRVR,PARM=('/SSCOM,LIS,LO,RENT,DLL,LP64,XPLINK') We tried to use PARAM=(R1) but it doesn't work. Nothing passed in argv in the C program We also tried to add what suggested by David If you want to pass the address of a parameter list in R1 use the following. #pragma runopts(plist(os)) And in main struct plist * parms = ( struct plist * ) __R1; But we got pragma runopts syntax (CEE3611): The run-time option PLIST was an invalid run-time option or is not supported in this release of Language Environment. Fabio _______________________________ Fabio Massimo Ottaviani EPV Technologies Technical Director Mob. +39 3406168088 - Tel. +39 0686210880 EPV Technologies S.r.l. Viale Angelico,54 – 00195 Roma http://secure-web.cisco.com/1uyQDFb-7uzPOC44lWjcav3kVjQptKNEBIXyHHpQwJjboxdNdXR3anAImp7JEwAQz_U-9HUbFS-8XFo03gSp_6ywBl6oY2GgoqwvMRy553ndG9znv_oTH-MHiPW1TcQXyp0eCnZ40JIDmur1y9vinIBlSaYv16SA5h6ptjger9YAdHDA4I4nTh9PMtgni5hH8MwmqezqO56Zn2q_2lL_6cQA5woeFizZNYJwR6NEzdfQshXp9Y24SF92l-7pF0ps1iAZsacq5jcta_YzdIDYeTLevLPf6OFjs2g2fdJ09LYpOQmdGspo3pHUVvuQ2Xvk8aKwuBPznlD4KAomtnPD_HOI8xLJcDJT9-GksYnxT6ws8-Y0gEbpz0b-HITK_5k0-PLRaThv0GUq9eKNjEgr1R2UECIL0bSGrwrgJsATJ_93jq6Ev0SpIUH4Pu3MKj89C/http%3A%2F%2Fwww.epvtech.com -----Messaggio originale----- Da: IBM Mainframe Discussion List <[email protected]> Per conto di Paul Gorlinsky Inviato: martedì 22 novembre 2022 15:00 A: [email protected] Oggetto: Re: Assembler program attaching a C program If this is a C program running under the LE enclave, then I would expect the normal calling conventions to be used. Wouldn't it be best practice to use standard OS conventions at least to the main() function? More questions, is this a main() function you are trying to attach or another function? Calling conventions are not the same. Take a look at <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublibz.boulder.ibm.com%2Fepubs%2Fpdf%2Fcee14200.pdf&data=05%7C01%7Csmetz3%40gmu.edu%7C8c5a88bd1b73443ec30c08daccadf74e%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C638047345081349225%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=drPmMwlHz5IN3h0TmGbvz6C%2FpKJTgMFbTzypkaqtDs0%3D&reserved=0> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublibz.boulder.ibm.com%2Fepubs%2Fpdf%2Fcee14200.pdf&data=05%7C01%7Csmetz3%40gmu.edu%7C8c5a88bd1b73443ec30c08daccadf74e%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C638047345081349225%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=drPmMwlHz5IN3h0TmGbvz6C%2FpKJTgMFbTzypkaqtDs0%3D&reserved=0 Language Environment Writing Interlanguage Communication Applications BTW is the assembler program in an LE enclave? Paul ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to <mailto:[email protected]> [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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
