-auto_enum


< Compile Options / Microcontroller Options >

[Format]

-auto_enum

 

-

[Default]

The default for this option is to process the enumeration type size as the signed long type.

[Description]

-

This option processes the enumerated data qualified by enum as the minimum data type with which the enumeration value can fit in.

-

The possible enumeration values correspond to the data types as shown in the following table.

Table 2.6

Correspondences between Possible Enumeration Values and Data Types

Enumerator

Data Type

Minimum Value

Maximum Value

When -unsigned_char is selected

When -signed_char is selected

128

127

signed char

char

0

255

char

unsigned char

32768

32767

signed short

signed short

0

65535

unsigned short

unsigned short

Other than above

int *1

int *1

Note

*1) When the -int_to_short option has been selected, the signed 4-byte integer type will be selected.