Use signal labels to guide buffer reuse

Description

For signals with the same label, the code generator attempts to use the same signal memory.

Category: Optimization

Settings

Default: Off

On

The code generator uses signal labels as a guide for which buffers to reuse.

Off

The code generator ignores signal labels when implementing buffer reuse.

Dependencies

This parameter:

  • Requires an Embedded Coder® license.

  • Appears only for ERT-based targets.

Tips

If your model has the optimal parameter settings for removing data copies, you might be able to remove additional data copies by using signal labels. After studying the generated code and the Static Code Metrics Report and identifying blocks for whose input and output signals you would like to reuse, you can add labels to signal lines and enable the Use signal labels to guide buffer reuse parameter. If possible, the code generator implements the reuse specification.

Command-Line Information

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

Recommended Settings

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

Related Topics