The following table shows the sizes and ranges of ordinal data types.
| Type | Option Settings | Size (bits) | Range |
|---|---|---|---|
| char | Use Unsigned Chars is disabled in the C/C++ Language (C Only) settings panel | 8 | -128 to 127 |
| Use Unsigned Chars is enabled | 8 | 0 to 255 | |
| signed char | n/a | 8 | -128 to 127 |
| unsigned char | n/a | 8 | 0 to 255 |
| short | n/a | 16 | -32,768 to 32,767 |
| unsigned short | n/a | 16 | 0 to 65,535 |
| int | n/a | 16 | -32,768 to 32,767 |
| unsigned int | n/a | 16 | 0 to 65,535 |
| long | n/a | 32 | -2,147,483,648 to 2,147,483,647 |
| unsigned long | n/a | 32 | 0 to 4,294,967,295 |
| pointer | small data model (“Large Data Model” is disabled in the M56800E Processor settings panel) | 16 | 0 to 65,535 |
| large data model (“Large Data Model” is enabled) | 24 | 0 to 16,777,215 |