Re: R: Assembler program attaching a C program

2022-11-22 Thread David Crayford
On 23/11/22 01:20, Fabio Massimo Ottaviani wrote: 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 runo

Re: R: Assembler program attaching a C program

2022-11-22 Thread Amr@Systemz
www.epvtech.com -Messaggio originale- Da: IBM Mainframe Discussion List Per conto di Paul Gorlinsky Inviato: martedì 22 novembre 2022 15:00 A: IBM-MAIN@LISTSERV.UA.EDU Oggetto: Re: Assembler program attaching a C program If this is a C program running under the LE enclave, then I would exp

Re: Assembler program attaching a C program

2022-11-22 Thread Seymour J Metz
metz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Fabio Massimo Ottaviani [fabio.ottavi...@epvtech.com] Sent: Tuesday, November 22, 2022 12:20 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: R: Assembler program attaching a C program Thanks t

R: Assembler program attaching a C program

2022-11-22 Thread Fabio Massimo Ottaviani
aggio originale- Da: IBM Mainframe Discussion List Per conto di Paul Gorlinsky Inviato: martedì 22 novembre 2022 15:00 A: IBM-MAIN@LISTSERV.UA.EDU 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 call

Re: Assembler program attaching a C program

2022-11-22 Thread Paul Gorlinsky
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 functio

Re: Assembler program attaching a C program

2022-11-22 Thread Seymour J Metz
@Systemz [00ae6d97fc6e-dmarc-requ...@listserv.ua.edu] Sent: Monday, November 21, 2022 11:13 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Assembler program attaching a C program Char **argv expects an array of char pointers, are you trying to pass that ? Why did you choose R10 for passing

Re: Assembler program attaching a C program

2022-11-21 Thread David Crayford
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; On 21/11/22 17:22, Fabio Massimo Ottaviani wrote: Hello I wrote an assembler program attaching a C program with ATTACHX

Re: Assembler program attaching a C program

2022-11-21 Thread Amr@Systemz
assembler program attaching a C program with ATTACHX ATTCH    ATTACHX EP=PROGC,PARAM=R10,                ECB=AMYECB,                            DISP=NO I set the address of the field, I want to pass as parameter, in R10 I checked that argv in the C program is empty Is there something I have to

Re: Assembler program attaching a C program

2022-11-21 Thread Seymour J Metz
rogram attaching a C program Hello I wrote an assembler program attaching a C program with ATTACHX ATTCHATTACHX EP=PROGC,PARAM=R10, ECB=AMYECB, DISP=NO I set the address of the field, I want to pass as parameter, in R10 I checked that argv in the C program is emp

Re: Assembler program attaching a C program

2022-11-21 Thread Binyamin Dissen
On Mon, 21 Nov 2022 10:22:01 +0100 Fabio Massimo Ottaviani wrote: :>I wrote an assembler program attaching a C program with ATTACHX :>ATTCHATTACHX EP=PROGC,PARAM=R10, :> ECB=AMYECB, :> DISP=NO :>I set the address of the field,

Assembler program attaching a C program

2022-11-21 Thread Fabio Massimo Ottaviani
Hello I wrote an assembler program attaching a C program with ATTACHX ATTCHATTACHX EP=PROGC,PARAM=R10, ECB=AMYECB, DISP=NO I set the address of the field, I want to pass as parameter, in R10 I checked that argv in the C program is empty Is