For signals with the same label, the code generator attempts to use the same signal memory.
Category: Optimization
Default: Off
The code generator uses signal labels as a guide for which buffers to reuse.
The code generator ignores signal labels when implementing buffer reuse.
This parameter:
Requires an Embedded Coder® license.
Appears only for ERT-based targets.
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.
Parameter:LabelGuidedReuse |
Value:
'on' | 'off' |
Default:
'off' |
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On (execution, ROM, RAM) |
Safety precaution | No impact |