Main Content

Reuse global block outputs

Optimization to reuse global variables

Model Configuration Pane: Code Generation / Optimization

Description

This Reuse global block outputs parameter instructs the code generator to reuse global memory for block outputs whenever possible.

Dependencies

This parameter is enabled by Signal storage reuse.

Settings

on (default) | off
On

The code generator reuses signal memory whenever possible, reducing global variable use.

Off

Signals are stored in unique locations.

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOn (execution, ROM, RAM)
Safety precautionNo impact

Programmatic Use

Parameter: GlobalBufferReuse
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2014a