John P. Baker wrote:
When using the LARL instruction to reference a literal (i.e., =X'..'), I
receive an ASMA058E error message due to the literal not being property
aligned (on a halfword boundary).

It would seem to me that when a relative instruction references a literal,
the assembler should force an otherwise unaligned literal to be aligned in
order to meet the requirements of the relative instruction.


It does seem like it could be useful if literals inherited the
worst-case alignment requirements imposed by the instruction operand(s)
that reference them. But, doing so could introduce some new issues.
Literals are currently sorted by length. Aligning short literals on a
halfword, fullword, doubleword or quadword boundary might require the
assembler to insert a lot of "filler" bytes in the literal pool. Would
that be acceptable?

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
310-338-0400 x318
edja...@phoenixsoftware.com
http://www.phoenixsoftware.com/

Reply via email to