| Syntax: | Default: |
| /Su[+|-|1|2|4] | /Su- |
Use /Su to control the size of enum variables. If you do not provide a size, all enum variables are made 4 bytes.
By default, the compiler uses the SAA rules: make all enum variables the size of the smallest integral type that can contain all variables.
You can specify the following sizes:
| /Su[+] | Make all enum variables 4 bytes. |
| /Su1 | Make all enum variables 1 byte. |
| /Su2 | Make all enum variables 2 bytes. |
| /Su4 | Make all enum variables 4 bytes. |
If an enumerator cannot be represented in the size you specify, the smallest of 1, 2, or 4 bytes that can represent the constant is used for that enumerator.