Use bitsets to reduce the amount of memory required to store state configuration variables.
Category: Optimization
Default: Off
Stores state configuration variables in bitsets. Potentially reduces the amount of memory required to store the variables. Potentially requires more instructions to access state configuration, which can result in less optimal code.
Stores state configuration variables in unsigned bytes. Potentially increases the amount of memory required to store the variables. Potentially requires fewer instructions to access state configuration, which can result in more optimal code.
Selecting this check box can significantly reduce the amount of memory required to store the variables. However, it can increase the amount of memory required to store target code if the target processor does not include instructions for manipulating bitsets.
Select this check box for Stateflow® charts that have a large number of sibling states at a given level of the hierarchy.
Clear this check box for Stateflow charts with a small number of sibling states at a given level of the hierarchy.
This parameter requires a Simulink® Coder™ license.
Parameter:
StateBitsets |
Value:
'on' | 'off' |
Default:
'off' |
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | Off (execution, ROM), On (RAM) |
Safety precaution | No impact |