On 2014-10-02, at 12:44, Jonathan Scott wrote:
> 
> Initialised dynamic structures are supported, either embedded
> within a contiguous area of initialised automatic storage or
> allocated individually.  These are compiled as separate CSECTs
> but copied to dynamic storage when initialised, then the CSECT
> version is used as a map of the dynamic storage.  (Read-only
> sections were defined using RSECT which was enhanced for HLASM
> to perform reentrancy checks even when NORENT was specified).
> This was particularly useful for MF=L parameter lists, which
> only needed to be defined once.
>  
Thanks.  I hadn't thought of multiple CSECTs, partly because
long ago an expert colleague strongly counseled me against them
based in his belief (now incorrect, I believe) that some old
assembler incorrectly presumed addressability across CSECT
boundaries.

So, with only the minor additional cost of a VCON to locate
the model CSECT and a transient base register to address it,
I might obtain storage for the writeable copy, copy the model
to it, drop the USING for the model and address the writeable
copy with a USING based on the model.  Of course, if I declare
the model read-only, I'll get RENT warnings on the writeable
copy.

Thanks again,
gil

Reply via email to