Minimum mangle length

Description

Increase the minimum number of characters for generating name-mangling text to help avoid name collisions.

Category: Code Generation > Identifiers

Settings

Default: 1

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.

Dependency

This parameter:

  • Appears only for ERT-based targets.

  • Requires Embedded Coder® when generating code.

Command-Line Information

Parameter: MangleLength
Type: integer
Value: value between 1 and 15
Default: 1

Recommended Settings

ApplicationSetting
DebuggingNo impact
Traceability1
EfficiencyNo impact
Safety precautionNo impact

Related Topics