ILE C/C++ Compiler Reference
Specifies the number of bytes the compiler uses to represent enumerations.
This becomes the default enumeration size for the object. A #pragma
enum directive overrides this compile option.

ENUM Syntax:
|--+----------------------+-------------------------------------|
| .-*SMALL-. |
'-ENUM(--+-1------+--)-'
+-2------+
+-4------+
'-*INT---'
- *SMALL
- Default setting. Use the smallest possible size for an enum,
as appropriate to the given enum value.
- 1
- Make all enum variables 1 byte in size, signed if possible
- 2
- Make all enum variables 2 bytes in size, signed if possible
- 4
- Make all enum variables 4 bytes in size, signed if possible
- *INT
-
-
Use the ANSI
C Standard enum size ( 4-bytes signed).
-
Use the ANSI
C++ Standard enum size ( 4-bytes signed; unless the enumeration value
> 231-1).
[ Top of Page | Previous Page | Next Page | Contents |
Index ]