메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

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

Latest Updated:05/18/2015

Question:

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

Answer:

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
  • 이 기사가 도움이 되셨나요?