Bitfield declarator type specifier - Specify bitfield type - MATLAB (original) (raw)

Main Content

Model Configuration Pane: Code Generation / Optimization

Description

The Bitfield declarator type specifier parameter specifies the bitfield type when selecting configuration parameter Pack Boolean data into bitfields. The optimization benefit is dependent upon your choice of target.

Dependencies

The Pack Boolean data into bitfields parameter enables this parameter.

Settings

uint_T (default) | **uchar_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.

Tips

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.

Application Setting
Debugging No impact
Traceability No impact
Efficiency Target dependent
Safety precaution No impact

Programmatic Use

Parameter: BitfieldContainerType
Type: character vector
Value: uint_T | uchar_T
Default: uint_T

Version History

Introduced in R2010a