Minimum mangle length
Specify the minimum number of characters for name-mangling
Model Configuration Pane: Code Generation / Identifiers
Description
Increase the minimum number of characters for generating name-mangling text to help avoid name collisions.
Dependencies
This parameter:
Appears only for ERT-based targets.
Requires Embedded Coder® when generating code.
Settings
1
(default) | integerMinimum: 1
Maximum: 15
Specify an integer value that indicates the minimum number of characters the code generator uses when generating name-mangling text. The maximum possible value is 15
. The minimum value automatically increases during code generation as a function of the number of collisions. A larger value reduces the chance of identifier disturbance when you modify the model.
Tips
Minimize disturbance to the generated code during development by specifying a value of 4. This value is conservative. It allows for over 1.5 million collisions for a particular identifier before the mangle length increases.
Set the value to reserve at least three characters for the name-mangling text. The length of the name-mangling text increases as the number of name collisions increases.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | 1 |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: MangleLength |
Type: integer |
Value: value between 1 and 15 |
Default: 1 |
Version History
Introduced before R2006a