Shared code placement - Location of generated code that is shared - MATLAB (original) (raw)

Main Content

Location of generated code that is shared

Model Configuration Pane: Code Generation / Interface

Description

The Shared code placement parameter specifies the location where the code generator places code for utility functions, exported data type definitions, and declarations of exported data that is configured with a custom storage class.

Settings

Auto (default) | Shared location

Auto

For a model that contains existing shared code (see Existing shared code (Embedded Coder)) or at least one of these blocks, places utility code within the_codeGenFolder`` /slprj/target/sharedutils `` (orcodeGenFolder/ [targetSpecific](../ug/build-process-folders.html#mw%5F956d7266-a347-4c5d-b9a3-d442c3180ec9)/_shared) folder :

If a model does not contain one of the preceding blocks or existing shared code, the code generator places utility code in the build folder (the folder that contains _`model`_.c or _`model`_.cpp).

Shared location

Places code for utilities in the codeGenFolder/slprj/_`target`_/_sharedutils (or codeGenFolder/ [targetSpecific](../ug/build-process-folders.html#mw%5F956d7266-a347-4c5d-b9a3-d442c3180ec9)/_shared) folder.

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

Programmatic Use

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

Version History

Introduced before R2006a