Literal pool

A literal pool is created under the following conditions:

Each literal pool has five segments into which the literals are stored (a) in the order that the literals are specified, and (b) according to their assembled lengths, which, for each literal, is the total explicit or implied length, as described below.

Since each literal pool is aligned on a SECTALGN alignment, this guarantees that all literals in the second segment are doubleword aligned; in the third segment, fullword aligned; and, in the fourth, halfword aligned. The minimum value of SECALGN is doubleword, so quadword alignment is not guaranteed. No space is wasted except, possibly, at the origin of the pool, and in aligning to the start of the statement following the literal pool.

Literals from the following statements are in the pool, in the segments indicated by the parenthesized numbers:

FIRST    START           0
         .
         MVC             TO,=3F'9'       (3)
         AD              2,=D'7'         (2)
         IC              2,=XL1'8'       (5)
         MVC             MTH,=CL3'JAN'   (5)
         LM              4,5,=2F'1,2'    (2)
         AH              5,=H'33'        (4)
         L               2,=A(ADDR)      (3)
         MVC             FIVES,=XL16'05' (1)

[ Top of Page | Previous Page | Next Page | Contents | Index ]