Model Configuration Parameters: Code Generation
The Code Generation 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 Configuration Parameters > Code Generation general category.
Parameter | Description |
---|---|
Specify which target file configuration will be used. | |
Browse file configuration options. | |
Shared coder dictionary that contains code interface configuration. | |
Specify C or C++ code generation. | |
Language standard | Specify the language standard for your execution environment. |
Use GPU Coder for CUDA code generation. This parameter requires a GPU Coder license. | |
Generate Halide code for faster array computation. | |
A description of the target file. | |
Specify code generation versus an executable build. | |
Specify whether to automatically package generated code and artifacts for relocation. | |
Specify the name of the | |
Control compiler optimizations for building generated code. | |
Specify custom compiler optimization flags. | |
Specify the toolchain to use when building an executable or library. | |
Specify compiler optimization or debug settings for toolchain. | |
Display or customize build configuration settings. | |
Enable generation of a makefile based on a template makefile. | |
Specify a make command and optionally append makefile options. | |
Specify the template makefile from which to generate the makefile. | |
Select a code generation objective to use with the Code Generation Advisor. | |
List of prioritized code generation objectives. | |
Open Configuration Set Objectives dialog box. | |
Select and prioritize code generation objectives. | |
Choose whether to run Code Generation Advisor checks before generating code. | |
Check whether the model meets code generation objectives. |
These configuration parameters are under the Advanced parameters.
Parameter | Description |
---|---|
Use the built-in callback for FFTW library usage in code generated for FFT functions in MATLAB® code. | |
Specify a callback class for FFTW library calls in code generated for FFT functions in MATLAB code. | |
Specify BLAS library callback class for BLAS calls in code generated from MATLAB code. | |
Specify LAPACK library callback class for LAPACK calls in code generated from MATLAB code. | |
Display code generation progress. | |
Specify | |
Profile the execution time of TLC files. | |
Produce the TLC stack trace. | |
Generate the TLC execution report. | |
Specify use of the TLC debugger | |
Read-only internal parameter for Simulink toolstrip. | |
Read-only internal parameter for Simulink toolstrip. | |
Specify a package that contains memory sections you want to apply to model-level functions and internal data. | |
Add user-defined packages that are on the search path to list of packages. | |
Specify whether to apply a memory section to Initialize/Start and Terminate functions. | |
Specify whether to apply a memory section to execution functions. | |
Specify whether to apply memory sections to shared utility functions. | |
Specify whether to apply a memory section to constants. | |
Specify whether to apply a memory section to root input and output. | |
Specify whether to apply a memory section to internal data. | |
Specify whether to apply a memory section to parameters. | |
Display the results of memory section validation. |
The following parameters under Advanced parameters are infrequently used and have no other documentation.
Parameter | Description |
---|---|
PostCodeGenCommand
- '' | Add the specified post code generation command to the model build process. |
TLCOptions - '' | 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 |
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. |
TargetTypeEmulationWarnSuppressLevel int - 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: