Documentation

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:

  • Is enabled bySignal storage reuse.

  • 需要嵌入式编码器®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 whoose input and output signals you would like to reuse, you can add labels to signal lines and enable theUse signal labels to guide buffer reuseparameter. If possible, the code generator implements the reuse specification.

Command-Line Information

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

Recommended Settings

Application Setting
Debugging Off
Traceability Off
Efficiency On (execution, ROM, RAM)
Safety precaution No impact

Related Topics