Main Content

Optimize global data access

Optimize global variable usage

Model Configuration Pane: Code Generation / Optimization

Description

The Optimize global data access parameter specifies global variable optimization.

Dependencies

This parameter is enabled by Signal storage reuse.

Settings

Use global to hold temporary results (default) | None | Minimize global data access
None

Use default optimizations.

Use global to hold temporary results

Maximize use of global variables.

Minimize global data access

Minimize use of global variables by using local variables to hold intermediate values.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
Efficiency'Use global to hold temporary results' (RAM), 'Minimize global data access' (ROM)
Safety precautionNo impact

Programmatic Use

Parameter: GlobalVariableUsage
Type: character vector
Value: 'None' | 'Use global to hold temporary results' | 'Minimize global data access'
Default: 'Use global to hold temporary results'

Version History

Introduced in R2014a