Reuse local block outputs
Reuse local output variables
Model Configuration Pane: Code Generation / Optimization
Description
The Reuse local block outputs parameter specifies whether Simulink® Coder™ reuses signal memory.
Dependencies
This parameter is enabled by Signal storage reuse.
Settings
on
(default) | off
- On
Simulink Coder software tries to reuse signal memory, reducing stack size where signals are being buffered in local variables.
Selecting this parameter trades code traceability for code efficiency.
- Off
Signals are stored in unique locations.
Recommended Settings
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On |
Safety precaution | No impact |
Programmatic Use
Parameter: BufferReuse |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced before R2006a