Documentation

Shared code placement

Description

Specify the location for generating utility functions, exported data type definitions, and declarations of exported data with custom storage class.

Category:Code Generation > Interface

Settings

Default:Auto

Auto

The code generator places utility code within thecodeGenFolder/slprj/target/_sharedutils(orcodeGenFolder/targetSpecific/_shared) folder for a model that containsExisting Shared Code(嵌入式代码r) or at least one of the following blocks:

  • Modelblocks

  • 金宝app仿真软件的功能blocks

  • Function Callerblocks

  • Calls to Simulink Functions fromStatefloworMATLAB Functionblocks

  • Stateflow graphical functions when theExport Chart Level Functionsparameter is selected

If a model does not contain one of the above blocks orExisting Shared Code(嵌入式代码r), the code generator places utility code in the build folder (generally, the folder that containsmodel.cormodel.cpp).

Shared location

Directs code for utilities to be placed within thecodeGenFolder/slprj/target/_sharedutils(orcodeGenFolder/targetSpecific/_shared) folder.

Command-Line Information

Parameter:UtilityFuncGeneration
Type:character vector
Value:'Auto'|'Shared location'
Default:'Auto'

Recommended Settings

Application Setting
Debugging Shared location(GRT)
No impact (ERT)
Traceability Shared location(GRT)
No impact (ERT)
Efficiency No impact (execution, RAM)
Shared location(ROM)
Safety precaution No impact

Related Topics

Was this topic helpful?