Main Content

Optimize global data access

Description

Select global variable optimization.

Category: Optimization

Settings

Default: Use global to hold temporary results

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.

Dependencies

  • This parameter is enabled by Signal storage reuse.

  • This parameter requires an Embedded Coder® license.

  • Appears only for ERT-based targets.

Command-Line Information

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

Recommended Settings

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

Related Topics