> to get what you want I would resort to this:
>
> ACONST  DC A(*+4),X'00FF4711')
>
> or you could use LA R,=X'00FF4711'
> instead of L R,ACONST

Hi Martin,

Thanks for the suggestion but my problem is that I am generating a data 
structure. The DC A(...) needs to generate the address of that literal in that 
data structure. The literal can't be inserted within the data structure so I 
can't use this solution.

Right now I am using two LOCTRs and generated labels to generate pointers  in 
the data structure (the first LOCTR) to the literals in a separate area (the 
second LOCTR). But that means that every literal is simply generated in that 
second area. I want to avoid generating duplicates of a literal (with their own 
different pointers in the data structure). That functionality is embedded in 
the assemblers literal pool and I hoped I could leverage that to generate 
literals only once and have the data structure always point to that one 
instance of the string even if the pointer occurs more than once in the 
structure.

It feels like it is something that should be easy to accomplish using the 
literal pool... ;)

Fred!


-----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended 
recipient. If you are not the intended recipient, don't use or disclose it in 
any way. Please let the sender know and delete the message immediately.
-----------------------------------------------------------------

Reply via email to