DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 58
FIELDALIGN_SHARED8 Command
FIELDALIGN_SHARED8 Command
The FIELDALIGN_SHARED8 command directs DDL to store data structures in the
dictionary with shared8 alignment. DDL inserts explicit fillers to ensure proper
alignment.
FIELDALIGN_SHARED8 Command Guidelines
The following points are guidelines for using the FIELDALIGN_SHARED8 command:
•
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 DDL 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
The following example shows the C source generated from the given DDL source with
FIELDALIGN_SHARED8 in effect:
DDL Source:
"?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.
Generated C Source:
/* 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
FIELDALIGN_SHARED8
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...