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
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On (execution, ROM, RAM) |
Safety precaution | No impact |
Programmatic Use
Parameter:
GlobalBufferReuse |
Type:
character vector |
Value:
'on' | 'off' |
Default:
'on' |
Version History
Introduced in R2014a