Generate C and C++ code optimized for embedded systems using Embedded Coder®.
Embedded Coder generates C and C++ code optimized for embedded systems by extending the capabilities offered by MATLAB Coder™ and Simulink Coder™.
The generated code is ANSI and ISO C compliant, so it can run on virtually any fixed- or floating-point device and is particularly well suited for applications that need to minimize memory usage or maximize speed.
You can replace the default code output with target-specific optimizations and customizations using code replacement libraries as shown here, or by using the legacy code tool.
Embedded Coder lets you review and navigate from the model to its generated code, and back again using code reports with traceability links.
You can verify that the code execution matches model simulation results using software-in-the-loop and processor-in-the-loop testing. SIL and PIL tests can also include code coverage analysis and execution profiling.
To generate code, establish your objectives using the Code Generation Advisor. For example, you may want code optimized for speed but not at the expense of MISRA-C compliance.
Additional options let you target an AUTOSAR environment, or generate C++ with class definitions. You can also control function call interfaces and data definitions by changing their default values.
Embedded Coder comes with example integrations to popular IDEs, real-time operating systems, run-time environments, and embedded processors; plus, it offers the APIs and tools you need to create your own custom environment.
For more information on Embedded Coder, including certification standard support, click a link below.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .Select web site
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.