I think the OP's literals are quite large and there are lots of them 
(potentially > 65K) so it is possibly a consideration.

More than dozens of bytes, but perhaps not worth worrying about. I took the OP 
at his word that it was important to pool the literals.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Martin Ward
Sent: Wednesday, December 13, 2017 8:20 AM
To: [email protected]
Subject: Re: Address of a =LITERAL

On 13/12/17 16:07, Farley, Peter x23353 wrote:
> This is really a simple problem to solve.  Here is a sample "data" program 
> that I believe satisfies the OP's needs:
>
>          MACRO
> &LBL     LITADCON &LIT
> DATAAREA LOCTR ,
> L&SYSNDX DC    &LIT
> &SYSECT  LOCTR ,
> &LBL     DC    A(L&SYSNDX)
>          MEND

The problem here is that if a pointer to the same data area is needed several 
times, then the data will be included several times:
when only one copy is needed.

This could waste literally *dozens* of bytes of memory!

-- 
                        Martin

Dr Martin Ward | Email: [email protected] | http://www.gkc.org.uk 
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4

Reply via email to