Main Content

Embedded Coder

Generate C and C++ code optimized for embedded systems

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.

Get Started

Learn the basics of Embedded Coder

Embedded Coder Fundamentals

Concepts for generating code for deployment in embedded systems

Architecture and Component Design

Design software systems by developing component algorithms intended for code generation and deployment for embedded systems

Code Generation

Configure code interfaces, generate and verify code results, and generate reports

Deployment, Integration, and Supported Hardware

Integrate, protect, package, and relocate generated code; deploy generated code to supported hardware

Code Efficiency

Optimize generated code by minimizing memory requirements and speeding up execution

Code and Tool Customization

Customize generated code and code generation tools for a project or organization

Verification, Testing, and Certification

Tune parameters, analyze code performance, test numeric equivalence, and perform code coverage and traceability analyses

Cross-Release Support

Integrate generated code from previous releases with generated code from the current release

Code Generation from MATLAB Code

Generate C/C++ code from MATLAB code for embedded systems

Check Bug Reports for Issues and Fixes

Software is inherently complex and is not free of errors. The output of a code generator might contain bugs, some of which are not detected by a compiler. MathWorks reports critical known bugs brought to its attention on its Bug Report system at In the search bar, type the phrase "Incorrect Code Generation" to obtain a report of known bugs that produce code that might compile and execute, but still produce wrong answers. To save a search, click Save Search.

The bug reports are an integral part of the documentation for each release. Examine periodically all bug reports for a release, as such reports may identify inconsistencies between the actual behavior of a release you are using and the behavior described in this documentation.

In addition to reviewing bug reports, you should implement a verification and validation strategy to identify potential bugs in your design, code, and tools.

Search R2024a Bug Reports

Known Bugs for Incorrect Code Generation
All Known Bugs for This Product