Specify custom optimizations
Description
Select this parameter to enable the optimization parameters in the Details section. Selecting this parameter enables you to choose individual optimization parameters rather than setting the Priority and Level parameters.
Settings
Default: Off
On
Enables you to individually select or clear parameters in the Details section.
Off
Disables the parameters in the Details section, so that you cannot individually select or clear these parameters.
Clearing this parameter enables the Level and Priority parameters and resets the parameters in the Details section to the current settings for the Level and Priority parameters.
Dependencies
This parameter:
Enables parameters in the Details section.
Requires an Embedded Coder® license.
Appears only for ERT-based targets.
Tips
If you plan on upgrading your software, be aware that:
Setting the Priority and Level parameters enables the latest optimizations corresponding with these settings for each subsequent release.
Selecting Specify custom optimizations means that when you load a model in a future release, optimization parameters that were introduced in releases after you adopted the software to when you upgrade are set to
off
. If you want to reduce the number of changes in the generated code when you upgrade your software, this option can be a good choice.
Command-Line Information
Parameter:
OptimizationCustomize |
Value:
'on' | 'off' |
Default:
'off' |
Recommended Settings
Application | Setting |
---|---|
Debugging | Off and set Level parameter to
Minimize (debugging) |
Traceability | Off and set Level parameter to
Minimize (debugging) |
Efficiency | Depends on individual parameter settings |
Safety precaution | No impact |