Use bitsets for storing Boolean data
Description
Use bitsets to reduce the amount of memory required to store Boolean data.
Category: Optimization
Settings
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.
Dependency
This parameter requires a Simulink® Coder™ license.
Command-Line Information
Parameter:
DataBitsets |
Value:
'on' | 'off' |
Default:
'off' |
Recommended Settings
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | Off (execution, ROM), On (RAM) |
Safety precaution | No impact |