Main Content

Shared code placement

Specify the location for generating shared utility code.


Default: Auto


Operates as follows:

  • When the model contains Model blocks, place utility code within the slprj/target/_sharedutils folder.

  • When the model does not contain Model blocks, place utility code in the build folder (generally, in model.c or model.cpp).

Shared location

Directs code for utilities to be placed within the slprj folder in your working folder.

Command-Line Information

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

Related Topics