Main Content

Shared utility


This parameter is not applicable for C code generation. To replicate this functionality for C code generation, use the Code Mappings Editor – C and Embedded Coder Dictionary.


Specify whether to apply memory sections to shared utility functions.

Category: Code Generation


Memory section specifications for functions and data apply to the top level of the model and to subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default


Suppresses the use of memory sections for shared utility functions.


Applies a memory section to shared utility functions, such as fixed-point functions, lookup table functions, binary search functions, and MATLAB functions defined outside MATLAB Function blocks.

Command-Line Information

Parameter: MemSecFuncSharedUtil
Type: character vector
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics