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.
Learn the basics of Embedded Coder
Concepts for generating code for deployment in embedded systems
Design software systems by developing component algorithms intended for code generation and deployment for embedded systems
Configure code interfaces, generate and verify code results, and generate reports
Integrate, protect, package, and relocate generated code; deploy generated code to supported hardware
Optimize generated code by minimizing memory requirements and speeding up execution
Customize generated code and code generation tools for a project or organization
Tune parameters, analyze code performance, test numeric equivalence, and perform code coverage and traceability analyses
Integrate generated code from previous releases with generated code from the current release
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 www.mathworks.com/support/bugreports/. 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.