主要内容

Embedded Coder

R2026b
生成针对嵌入式系统优化的 C 和 C++ 代码

Embedded Coder® 为大规模生产中使用的嵌入式处理器生成可读、紧凑且快速的 C 和 C++ 代码。它对 MATLAB® Coder™ 和 Simulink® Coder 进行了高级优化,以精确控制生成的函数、文件和数据。这些优化可以提高代码效率,简化与现有代码、数据类型和标定参数的集成。您可以结合使用第三方开发工具编译可执行文件,以在您的嵌入式系统或快速原型板上实现即交即用式部署。

Embedded Coder 对 AUTOSAR、MISRA C™ 和 ASAP2 软件标准提供内置支持。它还提供可追溯性报告和代码文档,以及支持 DO178、IEC 61508 和 ISO 26262 软件开发的自动化软件验证。Embedded Coder 代码是可移植的,并且可以在任何处理器上编译和执行。此外,它还为特定硬件提供具有高级优化和设备驱动的支持包。

Embedded Coder 快速入门

Embedded Coder 基础知识学习

Embedded Coder 基础知识

生成用于在嵌入式系统中部署的代码的概念

架构和组件设计

通过开发用于嵌入式系统代码生成和部署的组件算法来设计软件系统

代码生成

配置代码接口,生成和验证代码结果,并生成报告

部署、集成和支持的硬件

集成、保护、打包和转移生成的代码;将生成的代码部署到支持的硬件上

代码效率

通过最小化内存要求和加速执行来优化生成的代码

代码和工具自定义

为工程或组织自定义生成的代码和代码生成工具

验证、测试和认证

调节参数、分析代码性能、测试数值等效性,以及执行代码覆盖率和可追溯性分析

跨版本支持

将从以前版本生成的代码与从当前版本生成的代码集成在一起

从 MATLAB 代码中生成代码

从 MATLAB 代码中为嵌入式系统生成 C/C++ 代码


查看 Bug 报告以确定并解决问题

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/. Click the "Incorrect Code Generation" filter to obtain a report of known bugs that produce code that might compile and execute, but still produce wrong answers. To save the filtered results, 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.

搜索 R2026b Bug 报告

导致生成错误代码的已知 Bug
本产品的所有已知 Bug