Main Content
Code Generation Configuration Sets
Configure models for simulation and code generation
The model configuration parameters for code generation define how the code generator produces code and builds an executable from your model.
Model Settings
Objects
Blocks
Topics
Code Generation Configuration
- Code Generation Configuration
Modify the model configuration parameters specific to code generation from the Configuration Parameters Dialog box. - Configuration Variations
Retarget code generation from a model with multiple configuration sets. - Use Configuration Reference to Select Code Generation Target
Select a code generation target for a model reference hierarchy without modifying individual models. - Create Custom Code Generation Objectives
Create predefined code generation objectives to meet your requirements. - Configure Code Generation Parameters for Model Programmatically
Modify the model configuration parameters specific to code generation from the MATLAB® command line. - Configure and Optimize Model with Configuration Wizard Blocks
Easily configure and optimize code generation options with Configuration Wizard blocks and scripts. - Recommended Settings Summary for Model Configuration Parameters
Summary of code generation parameters for tuning model and target configurations.
Model Configuration Parameters: Code Generation
- Model Configuration Parameters: Code Generation
General parameters for defining code generation for a model's active configuration set, including target selection, documentation, and build process. - Model Configuration Parameters: Code Generation Optimization
Parameters for configuring code optimization. - Model Configuration Parameters: Code Generation Report
Parameters for configuring code generation reports. - Model Configuration Parameters: Comments
Parameters for controlling the comments that you want to automatically generate and insert into the generated code. - Model Configuration Parameters: Code Generation Identifiers
Parameters for selecting automatically generated naming rules for identifiers in code generation. - Model Configuration Parameters: Code Generation Custom Code
Parameters for creating a list of custom C code, folders, source files, and libraries to include in generated files. - Model Configuration Parameters: Code Generation Interface
Parameters for selecting the target software environment, output variable name modifier, and data exchange interface. - Model Configuration Parameters: Code Style
Parameters for controlling the automatically generated code style for readability. - Model Configuration Parameters: Code Generation Verification
Code verification and performance analysis parameters for SIL and PIL simulations. - Model Configuration Parameters: Code Generation Templates
Parameters for customizing generated code organization. - Model Configuration Parameters: Code Generation Code Placement
Parameters for specifying data placement in the generated code. - Model Configuration Parameters: Code Generation Data Type Replacement
Parameters for replacing built-in data type names with user-defined replacement data type names in the generated code. - Model Configuration Parameters: Code Generation AUTOSAR
Parameters for controlling AUTOSAR code generation.