On Thu, 30 Mar 2023 16:09:43 +0000, Frank Swarbrick  wrote:

>Perhaps the "weird way" could be documented as an appropriate way to pass 
>arguments by value instead of the standard by reference.  Then it would no 
>longer be weird!
>
What code does the compiler generate when a long scalar such as _Decimal128 is 
passed by value?

Of course, the compiler can be guided by function prologues and rely on the 
function
to copy from a passed address to automatic storage.

Does C use the CALL VL convention?

>On Wed, Mar 29, 2023 at 7:53 PM Frank Swaririck wrote:
>>
>> *        EXAMPLE 1 (MY WEIRD WAY):
>>          CALL  @@GETCB,MF=(E,=F'3')
>> *    ...
>> *        EXAMPLE 3 (LOAD REGISTER (2) WITH VALUE,
>> *        THEN CALL WITH THAT REGISTER AS THE ARGUMENT:
>>          LHI   2,3
>>          CALL  @@GETCB,((2)),MF=(E,CALL1)

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to