Model Configuration Parameters: Code Generation - MATLAB & Simulink (original) (raw)
The category includes parameters for defining the code generation process including target selection. It also includes parameters for inserting comments and pragmas into the generated code for data and functions. These parameters require a Simulink® Coder™ license. Additional parameters available with an ERT-based target require an Embedded Coder® license. Generating CUDA® C++ code for NVIDIA® GPUs requires a GPU Coder™ license.
These configuration parameters appear in the > general category.
Parameter | Description |
---|---|
System target file (Simulink Coder) | Specify which target file configuration will be used. |
Browse (Simulink Coder) | Browse file configuration options. |
Shared coder dictionary (Embedded Coder) | Shared coder dictionary that contains code interface configuration. |
Language (Simulink Coder) | Specify C or C++ code generation. |
Language standard (Simulink Coder) | Specify the language standard for your execution environment. |
Generate GPU code (Simulink Coder) | Use GPU Coder for CUDA code generation.This parameter requires a GPU Coder license. |
Generate Halide code (Embedded Coder) | Generate Halide code for faster array computation. |
Description (Simulink Coder) | A description of the target file. |
Generate code only (Simulink Coder) | Specify code generation versus an executable build. |
Package code and artifacts (Simulink Coder) | Specify whether to automatically package generated code and artifacts for relocation. |
Zip file name (Simulink Coder) | Specify the name of the .zip file in which to package generated code and artifacts for relocation. |
Compiler optimization level (Simulink Coder) | Control compiler optimizations for building generated code. |
Custom compiler optimization flags (Simulink Coder) | Specify custom compiler optimization flags. |
Toolchain (Simulink Coder) | Specify the toolchain to use when building an executable or library. |
Build configuration (Simulink Coder) | Specify compiler optimization or debug settings for toolchain. |
Toolchain details (Simulink Coder) | Display or customize build configuration settings. |
Generate makefile (Simulink Coder) | Enable generation of a makefile based on a template makefile. |
Make command (Simulink Coder) | Specify a make command and optionally append makefile options. |
Template makefile (Simulink Coder) | Specify the template makefile from which to generate the makefile. |
Select objective (Simulink Coder) | Select a code generation objective to use with the Code Generation Advisor. |
Prioritized objectives (Embedded Coder) | List of prioritized code generation objectives. |
Set Objectives (Embedded Coder) | Open Configuration Set Objectives dialog box. |
Set Objectives — Code Generation Advisor Dialog Box (Embedded Coder) | Select and prioritize code generation objectives. |
Check model before generating code (Simulink Coder) | Choose whether to run Code Generation Advisor checks before generating code. |
Check Model (Simulink Coder) | Check whether the model meets code generation objectives. |
These configuration parameters are under the Advanced parameters.
The following parameters under Advanced parameters are infrequently used and have no other documentation.
Parameter | Description |
---|---|
PostCodeGenCommand character vector - '' | Add the specified post code generation command to the model build process. |
TLCOptions character vector - '' | Specify additional TLC command-line options.When you use Embedded Coder for a component model that is configured with a service interface, you cannot specify -aInlineSetEventsForThisBaseRateFcn=TLC_FALSE, -aSuppressMultiTaskScheduler=TLC_FALSE, -aRateBasedStepFcn=TLCFALSE, - (wrapper function) |
The following parameters are for MathWorks use only.
Parameter | Description |
---|---|
Comment | For MathWorks use only. |
PreserveName | For MathWorks use only. |
PreserveNameWithParent | For MathWorks use only. |
SignalNamingFcn | For MathWorks use only. |
TargetTypeEmulationWarnSuppressLevelint - 0 | For MathWorks use only.When greater than or equal to 2, suppress warning messages that the code generator displays when emulating integer sizes in rapid prototyping environments. |
The Configuration Parameters dialog box also includes other code generation parameters:
- Model Configuration Parameters: Code Generation Optimization (Simulink Coder)
- Model Configuration Parameters: Code Generation Report (Simulink Coder)
- Model Configuration Parameters: Comments (Simulink Coder)
- Model Configuration Parameters: Code Generation Identifiers (Simulink Coder)
- Model Configuration Parameters: Code Generation Custom Code (Simulink Coder)
- Model Configuration Parameters: Code Generation Interface (Simulink Coder)
Related Topics
- Model Configuration Set Customization (Simulink Coder)
- Control Data and Function Placement in Memory by Inserting Pragmas (Embedded Coder)