Bitfield declarator type specifier
Description
Specify the bitfield type when selecting configuration parameter Pack Boolean data into bitfields.
Category: Optimization
Note
The optimization benefit is dependent upon your choice of target.
Settings
Default:
uint_T
uint_T
The type specified for a bitfield declaration is an
unsigned int
.uchar_T
The type specified for a bitfield declaration is an
unsigned char
.
Tip
The Pack Boolean data into bitfields configuration parameter default setting uses
unsigned integers. This might cause an increase in RAM if the bitfields are small and
distributed. In this case, uchar_T
might use less RAM depending on your
target.
Dependency
Pack Boolean data into bitfields enables this parameter.
Command-Line Information
Parameter:
BitfieldContainerType |
Value:
uint_T | uchar_T
|
Default:
uint_T |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Target dependent |
Safety precaution | No impact |