Main Content

Use bitsets for storing Boolean data

Bitsets to store Boolean data

Model Configuration Pane: Code Generation / Optimization

Description

The Use bitsets for storing Boolean data parameter specifies whether to use bitsets to reduce the amount of memory required for storing Boolean data.

Settings

off (default) | on

Default: Off

On

Stores Boolean data in bitsets. Potentially reduces the amount of memory required to store the data. Potentially requires more instructions to access the data, which can result in less optimal code.

Off

Stores Boolean data in unsigned bytes. Potentially increases the amount of memory required to store the data. Potentially requires fewer instructions to access the data, which can result in more optimal code.

Tips

  • Select this check box for Stateflow® charts that reference Boolean data infrequently.

  • Clear this check box for Stateflow charts that reference Boolean data frequently.

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOff (execution, ROM), On (RAM)
Safety precautionNo impact

Programmatic Use

Parameter: DataBitsets
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced before R2006a