Main Content

Code Generation from Simulink Models

C/C++ code from Simulink® models for embedded systems

The Embedded Coder® product extends the Simulink Coder™ product with features that you can use for embedded software development. You can implement algorithms as Simulink blocks and Stateflow® charts in a Simulink model. To generate C or C++ code from a Simulink model, with Embedded Coder you can implement, configure, and verify your model for code generation. You can generate code that has the clarity and efficiency of professional handwritten code. For example, you can:

  • Generate code that is compact and executes efficiently, which is essential for real-time simulators, on-target rapid prototyping boards, microprocessors used in mass production, and embedded systems.

  • Customize the appearance of the generated code.

  • Optimize generated code for a specific target environment.

  • Integrate existing applications, functions, and data.

  • Enable tracing, reporting, and testing options that facilitate code verification activities.

Generating C or C++ code from Simulink models with Embedded Coder requires the following products:

  • MATLAB®

  • MATLAB Coder

  • Simulink

  • Simulink Coder

  • Embedded Coder