The C6000 compiler v8.0.4 accepts the --small_enum option, as demonstrated by the following example in which sizeof (sequence_enum) is 4 without --small_enum and 1 with --small_enum:
typedef enum
{
SEQUENCE_A,
SEQUENCE_B,
SEQUENCE_C
} sequence_enum;
int main(void) {
return sizeof (sequence_enum);
}
However --small_enum isn't reported when cl6x --help is run, which means the --small_enum option isn't shown in the CCS project properties. The work-around is to add --small_enum in the CCS Project Properties by CCS Build -> C6000 Compiler -> Set Additional Flags.
For reference, this was first noticed in https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/472985