C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

Table 9 shows the size of the short, int, and long types when you omit or specify the WIDE
pragma in TNS C.
Table 9 Relationship Between WIDE Pragma and Types short, int, and long
Size With WIDE Pragma SpecifiedSize Without WIDE Pragma SpecifiedData Type
16 bits16 bitsshort
32 bits16 bitsint
32 bits32 bitslong
For TNS C and C++, relative sizes of the types short, int, and long depend on whether you compile
the program under the 32-bit (wide) data model.
Without the 32-bit (wide) data model: With the 32-bit (wide) data model:
char < short = int < long char < short < int = long
For application portability and compatibility with native C and C++, use the 32-bit (wide) data
model whenever possible. For more details on the WIDE pragma, see WIDE (page 258). For more
details on the 32-bit (wide) data model, see Two Data Models: 16-Bit and ILP32 (page 325).
Data Types 65