Model Configuration Parameters: Code Generation Interface - MATLAB & Simulink (original) (raw)
The > category includes parameters for configuring the interface of the generated code. These parameters require a Simulink® Coder™ license. Additional parameters available with an ERT-based target require an Embedded Coder® license. Generating code for deep learning models using NVIDIA® CUDA® deep neural network library (cuDNN) or TensorRT™ high performance inference libraries for NVIDIA GPUs requires a GPU Coder™ license.
On the Configuration Parameters dialog box, the following configuration parameters are on the > pane.
These configuration parameters are under the Advanced parameters.
The following parameters under the Advanced parameters are infrequently used and have no other documentation.
Parameter | Description |
---|---|
GenerateSharedConstants | Control whether the code generator generates code with shared constants and shared functions. Default is on. When turned off, the code generator does not generate shared constants. |
InferredTypesCompatibility | For compatibility with legacy code includingtmwtypes.h, specify that the code generator creates a preprocessor directive #define __TMWTYPES__ inside_model_.h. |
TargetLibSuffix character vector - '' | Control the suffix used for naming a target's dependent libraries (for example, _target.lib or_target.a). If specified, the character vector must include a period (.). (For generated model reference libraries, the library suffix defaults to _rtwlib.lib on Windows® systems and _rtwlib.a on UNIX® systems.).This parameter does not apply for model builds that use the toolchain approach, see Library Control Parameters |
TargetPreCompLibLocation character vector - '' | Control the location of precompiled libraries. If you do not set this parameter, the code generator uses the location specified inrtwmakecfg.m. |
IsERTTarget | Indicates whether or not the currently selected target is derived from the ERT target. |
CPPClassGenCompliant | Indicates whether the target supports the ability to generate and configure C++ class interfaces to model code. |
ConcurrentExecutionCompliant | Indicates whether the target supports concurrent execution |
UseToolchainInfoCompliant | Indicate a custom target is toolchain-compliant. |
ModelStepFunctionPrototypeControlCompliant | Indicates whether the target supports the ability to control the function prototypes of initialize and step functions that are generated for a Simulink model.This parameter does not apply when you use Embedded Coder for a component model that is configured with a service interface. |
ParMdlRefBuildCompliant | Indicates if the model is configured for parallel builds when building a model that includes referenced models. |
CompOptLevelCompliant off,on | Set in SelectCallback for a target to indicate whether the target supports the ability to use the Compiler optimization level parameter to control the compiler optimization level for building generated code.Default isoff for custom targets and on for targets provided with the Simulink Coder and Embedded Coder products. |
ModelReferenceCompliantcharacter vector - off, on | Set in SelectCallback for a target to indicate whether the target supports model reference. |
The following parameters are for MathWorks use only.
Parameter | Description |
---|---|
ExtModeTesting | For MathWorks use only. |
ExtModeIntrfLevel | For MathWorks use only. |
ExtModeMexFile | For MathWorks use only. |