Pass structures by reference to entry-point functions
Pass structures by reference
Description
App Configuration Pane: Advanced
Configuration Objects: coder.CodeConfig
| coder.EmbeddedCodeConfig
The Pass structures by reference to entry-point functions parameter specifies whether to pass structures by reference to entry-point functions. This parameter applies only to entry-point functions. Passing structures by reference can reduce memory usage and execution time by minimizing the number of copies of parameters at entry-point function boundaries.
Note
If you select the Pass structures by reference to entry-point functions check box, an entry-point function that writes to a field of a structure parameter overwrites the input value.
Settings
- On
The generated code passes structures by reference. This value is the default value.
- Off
The generated code passes structures by value.
Programmatic Use
Property:
PassStructByReference |
Values: true |
false |
Default: true |
Version History
Introduced in R2013a