Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-58
FIELDALIGN_SHARED8
FIELDALIGN_SHARED8
The FIELDALIGN_SHARED8 command stores data structures in the dictionary with
SHARED8 alignment.
Use the FIELDALIGN_SHARED8 command to generate TAL (pTAL) or C source code
that will produce optimal performance on a RISC processor.
The FIELDALIGN_SHARED8 command causes the DDL compiler to generate explicit
filler fields:
•
To align an item according to its width
•
At the end of a structure to make its length a multiple of its alignment
•
To prevent bit fields less than 16 bits from straddling a 2-byte boundary
FIELDALIGN_SHARED8
Example 9-26. FIELDALIGN_SHARED8 Command (page 1 of 2)
DDL Input
?FIELDALIGN_SHARED8
def a.
02 b type character 1.
02 c type character 1.
02 d type character 1.
end.
def e type character 1.
def f.
02 g type binary 16.
02 h.
03 i type e.
03 j type a.
02 k type character 1.
02 l type binary 16.
end.
/* SCHEMA PRODUCED DATE - TIME :10/13/1995 13:23:16 */
#pragma section a
/* Definition A created on 10/13/1995 at 13:23 */
#pragma fieldalign shared8 __a
typedef struct __a
{
char b;
char c;
char d;
char filler_0;
} a_def;