On Mon, 7 May 2018 02:58:38 -0500, Elardus Engelbrecht 
<[email protected]> wrote:

>>  GETMAIN is not going to ever manage 32-bit
>> storage. I would word you requirement this way:

> Why specific GETMAIN? What about STORAGE macro?

For an existing 32-bit program, being able to
change LOC=31 or LOC=ANY to LOC=32 is
the simplest change, and on an old system
it will still work, just obtaining LOC=31 memory
instead of LOC=32 memory, better than nothing.

>> " I would like to have a USE2GTO4G=NO|YES
>> parameter on IARV64 GETSTOR,

However, *as well as* GETMAIN having the
capability I have no problem with other
facilities such as IARV64 being able to do
the same thing. I see no reason to hold
back GETMAIN. And note that if a program
using the IARV64 macro with the new
parameter is run on an older system, what
do you get then? Memory above 4 GiB?
GETMAIN won't have that problem, as it
reverts to LOC=31 memory.

> Perhaps, but no-one said something about FREEMAIN.
> If you get what you want with GETMAIN, how do you
> do the FREEMAIN or any other clean-up work properly?
> In what AMODE do you want to do the cleanup?

I would expect the FREEMAIN to also be done in
AM64. What happens currently if a GETMAIN is
done in AM31 and later the FREEMAIN is done
in AM24?

> I believe those 31 bit limits are there for good
> reasons including backward compatibility

For backward compatibility I have asked for
the LOC=31 bits to be used as well as using
a reserved bit. I see no other issue. LOC=32
doesn't mean that you *must* get memory
above 2 GiB. It just needs to be anywhere
in the 4 GiB space, so programs will happily
accept getting lower memory when they do
a LOC=32 request.

> and checking the registers during an ABEND.

I believe an ABEND will have the same problem
in AM31, not knowing whether a register is
actually AM24.

> I can ask more questions like this one: what
> about a chain of programs which call other
> programs and each of them have their own
> unique GETMAIN macros with varying AMODEs
> and parameters?

I don't see any issue with this, just the same
as there is no issue with a chain of programs
that use a mixture of LOC=24 and LOC=31
GETMAINs and mixture of AM24/31 AMODEs.

BFN. Paul.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to