On 11/8/2021 1:45 AM, Tony Thigpen wrote:
I decided to put the constant in-line and use BRAS to acquire it's address:

         AIF   ('&PARM'(1,1) NE '''').N0004
         BRAS  &TREG,N2&SYSNDX
&TVAL    SETC  '&PARM'(2,K'&PARM-2)
N1&SYSNDX DC   CL&SIZE'&TVAL'
N2&SYSNDX DS   0H
         AGO   .N0099
.N0004   ANOP

Back in the day, it was quite common to see this technique used in IBM macros. However, they now use literals  -- a better choice from a performance perspective since I- and D-cache has been split since the first z/Architecture boxes hit the market back in 1999. Because of this split, an inline constant such as this will require a D-cache line be populated from memory even though it's already present in the I-cache.

If this code is not in the performance path, then what you're doing should be fine...


--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://www.phoenixsoftware.com/


--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.

Reply via email to