Skip to main content
Renesas Singapore - Knowledgebase

Is a bit field with 32 bits possible for CC-RL compiler for RL78 devices?

Latest Updated:05/18/2015


I am using the CC-RL compiler for RL78 devices. Is a bit field with 32 bits possible?


Yes, you can designate bit fields of the char, signed char, unsigned char, signed short, unsigned short, signed int, unsigned int, signed long, unsigned long, signed long long, and unsigned long long types.
In C90, only the signed and unsigned int types are allowed. However in CC-RL, whether or not the -ansi option is specified, the types listed above are always valid for use as bit fields.
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family