Optimize code generated for vector assignment by replacing for
loops with memcpy
.
Category: Optimization
Default: On
Enables use of memcpy
for vector assignment based
on the associated threshold parameter Memcpy threshold
(bytes). memcpy
is used in the
generated code if the number of array elements times the number of bytes
per element is greater than or equal to the specified value for
Memcpy threshold (bytes). One byte equals the
width of a character in this context.
Disables use of memcpy
for vector
assignment.
This parameter requires a Simulink® Coder™ license.
When selected, this parameter enables the associated parameter Memcpy threshold (bytes).
Parameter:
EnableMemcpy |
Value:
'on' | 'off' |
Default:
'on' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No impact |