Main Content

Reuse local block outputs

Description

Specify whether Simulink® Coder™ software reuses signal memory.

Category: Optimization

Settings

Default: On

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.

Dependencies

This parameter:

  • Is enabled by Signal storage reuse.

  • Requires a Simulink Coder license.

Command-Line Information

Parameter: BufferReuse
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOn
Safety precautionNo impact

Related Topics