Main Content

Code Generation Basics

Overview of code generation process

The basic steps for code generation are:

  • Open a model

  • Configure the model for code generation by selecting the solver, target, the language, and the code generation objectives

  • Select the build approach (for example, toolchain approach)

  • Build the model

The model configuration parameters provide many options for the code generation and build process.

Apps

Simulink CoderGenerate 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

Topics

Getting Started

Code Generation Files and Folders

Options for More Code Generation Control

Code Generation with Project