Code Generation Output
To generate code to run on a specific target platform, configure the code generation output for your model. Consider your code configuration for these target platforms:
The MATLAB® development computer that runs MathWorks® software during application development.
The test hardware on which you test code during rapid prototyping.
The production hardware on which you deploy generated code.
The code generation output is controlled by the system target file, language, and deployment type that you specify for the model. These settings control which code generation options are available in the Configuration Parameters dialog box and in the Code Mappings editor. Use these options to configure the generated code to run on your target hardware.
Apps
Embedded Coder | Generate readable, compact, and fast C and C++ code for embedded processors used in mass production |
Functions
switchTarget | Select target for model configuration set |
Topics
- Compare System Target File Support Across Products
Evaluate system target file support by product, code style, and generated code features.
- Configure a System Target File
Select and configure a solver and a system target file.
- Configure STF-Related Code Generation Parameters
Configure model parameters that relate to GRT, ERT, or ERT-based system target files for code generation.
- Select Code Generation Output for Target Platform Deployment
Select output type the code generator uses to produce code for the loaded model.
- Configure C Code Deployment Types for Model Hierarchy
Generate different code interfaces for models throughout a model hierarchy.
- Configure Run-Time Environment Options
Set model simulation and code generation options for development and deployment run-time environments: MATLAB development computer, production hardware, and test hardware.
- Select C or C++ Programming Language
Choose C or C++ as the programming language for code generation.
- Configure Language Standard for Target System
Configure standard library extensions that the code generator uses for math operations.
- Replace Code Generated from Simulink Models
This example shows how to replace generated code by using a code replacement library.