pTAL Reference Manual (H06.03+)
Structures
HP pTAL Reference Manual—523746-005
9-47
Declaring Filler
The compiler allocates space for each byte or bit you specify in a filler declaration. If
the alignment of the next data item requires additional pad bytes or bits, the compiler
allocates those also.
See also the filler byte example in Definition Substructure on page 9-56.
Example 9-37. Filler Byte Declarations
LITERAL last = 11; ! Last occurrence
STRUCT .x[1:last];
BEGIN
STRING byte[0:2];
FILLER 1; ! Document word-alignment pad byte
INT word1;
INT word2;
INT(32) integer32;
FILLER 30; ! Place holder for unused space
END;
Example 9-38. Filler Bit Declaration
STRUCT .flags;
BEGIN
UNSIGNED(1) flag1;
UNSIGNED(1) flag2;
UNSIGNED(2) state; ! State = 0, 1, 2, or 3
BIT_FILLER 12; ! Place holder for unused space
END;










