Gil,

I found the same thing.

However, I believe that it is reasonable to expect that HLASM, when
referencing a literal by way of an instruction using relative addressing,
should force the literal to a halfword boundary.

Since this is not presently the case, I plan to submit a requirement to IBM
requesting that, at a minimum, an HLASM option be provided to enable
relative addressing literal alignment.

John P. Baker

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Paul Gilmartin
Sent: Saturday, August 21, 2010 2:55 PM
To: [email protected]
Subject: Re: LARL vs. Literal Alignment

I've read a little more on this:

High Level Assembler for z/OS & z/VM & z/VSE Language Reference
Release 6
Document Number SC26-4940-05
__________________________________
  5.31.1 Literal pool
...
     * The fourth segment contains those whose assembled lengths
       are even, but not a  multiple of 4

   Since each literal pool is aligned on a SECTALGN alignment,
   this guarantees that all literals in the [...] fourth [segment
   are] halfword aligned.

So if you pad your hex constant on the right with anything so
its length is even, it will be generated halfword aligned.

-- gil

Reply via email to