Get Started with Embedded Coder
Embedded Coder® generates readable, compact, and fast C and C++ code for embedded processors used in mass production. It extends MATLAB® Coder™ and Simulink® Coder with advanced optimizations for precise control of the generated functions, files, and data. These optimizations improve code efficiency and facilitate integration with legacy code, data types, and calibration parameters. You can incorporate a third-party development tool to build an executable for turnkey deployment on your embedded system or rapid prototyping board.
Embedded Coder offers built-in support for AUTOSAR, MISRA C™, and ASAP2 software standards. It also provides traceability reports, code documentation, and automated software verification to support DO178, IEC 61508, and ISO 26262 software development. Embedded Coder code is portable, and can be compiled and executed on any processor. In addition, it offers support packages with advanced optimizations and device drivers for specific hardware.
Tutorials
- Generate C Code from Simulink Models
Generate, test, and deploy C code optimized for an embedded system from a model that represents a discrete-time control system.
- Generate C Service Interface Code from Component Models
How to generate C code that uses a service code interface.
- Generate C++ Code from Simulink Models
Generate, review, and deploy C++ code optimized for an embedded system from a Simulink model.
- Controlling C Code Style
Generateswitch-case
statements instead ofif-elseif-else
statements in C/C++ code generated from MATLAB code. - Include Comments in Generated C/C++ Code
Include MATLAB source code as comments in the generated code. Include function help text and function signature in function banner.
Code Generation from Simulink Model Workflow
Code Generation from MATLAB Code Workflow
About Code Generation for Embedded Systems
- Code Generation by Using Embedded Coder
MathWorks® code generation technology produces C or C++ code and executable programs for algorithms.
- Target Environments and Applications
Choose a system target file for generating, building, and executing code for target environments, such as development computers, real-time simulators, and embedded processors.
- Embedded Coder Fundamentals
Concepts for generating code for deployment in embedded systems
- Code Generation Goal Summary
Find information relevant to your project goals.
- Customize Code Generation Environment
Customize code generation environment for a project or organization.
- Embedded Coder Capabilities for Code Generation from MATLAB Code
The Embedded Coder product extends the MATLAB Coder product with capabilities that you can use for embedded software development.
Featured Examples
Videos
How to Generate Production Code in 5 Minutes
Quickly generate code based on your high-level project requirements.
Embedded Coder Data, Function, and File Customization
Assign default definitions, storage classes, and memory sections to
classes of data such as inputs, outputs, and parameters.
Dynamic Code Verification and Analysis: SIL, PIL, and External Mode
Verify, tune, log, and calibrate generated code by using
software-in-the-loop, processor-in-the-loop, and external mode
techniques.