Main Content

Loop unrolling threshold

Description

Specify the minimum array size width for which a for loop is generated.

Category: Optimization

Settings

Default: 5

Specify the array size at which the code generator begins to use a for loop instead of separate assignment statements to assign values..

When there are perfectly nested loops, the code generator uses a for loop if the product of the loop counts for loops in the perfect loop nest is greater than or equal to the threshold.

Dependency

This parameter requires a Simulink® Coder™ license.

Command-Line Information

Parameter: RollThreshold
Type: character vector
Value: valid value
Default: '5'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
Efficiency>0
Safety precautionNo impact

Related Topics