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 (STF) and language 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
|Simulink Coder||Generate and execute C and C++ code from Simulink models, Stateflow charts, and MATLAB functions for use in applications such as simulation acceleration, rapid prototyping, and hardware-in-the-loop (HIL) simulations|
|Select target for model configuration set|
- 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.
- 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 Standard Math Library for Target System
Configure standard library extensions that the code generator uses for math operations.