Your on lp64, is the invoking program passing a 64 bit address. main() is 
slightly tricky but the second word or dword in param list pointed to by R1 
should point to sequence of address which point to null terminated strings.     
On Tuesday, November 22, 2022, 09:21:01 AM PST, Fabio Massimo Ottaviani 
<[email protected]> wrote:  
 
 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

www.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://publibz.boulder.ibm.com/epubs/pdf/cee14200.pdf> 
https://publibz.boulder.ibm.com/epubs/pdf/cee14200.pdf 

 

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

Reply via email to