Code Generation from MATLAB Code
The Embedded Coder® product extends the MATLAB Coder™ product with features that you can use for embedded software development. For example, you can:
Generate code that is compact and executes efficiently for embedded systems.
Customize the appearance of the generated code.
Generate code that is compliant with a large subset of the MISRA™ and AUTOSAR coding standards.
Optimize generated code for a specific target environment.
Integrate existing applications, functions, and data.
Enable tracing, reporting, and testing options that facilitate code verification activities.
Generating C/C++ code from MATLAB code with Embedded Coder requires these products:
MATLAB
MATLAB Coder
Embedded Coder
MATLAB
Coder supports a subset of core MATLAB language features, including program
control constructs, functions, and matrix operations. To generate C/C++ code, use
the MATLAB
Coder app or the codegen
function. With Embedded Coder, you have access to additional options and advanced optimizations for
fine-grain control of the generated code’s functions, files, and data. See Embedded Coder Capabilities for Code Generation from MATLAB Code.
Categories
- Code Appearance
Control identifiers, code style, comments, and function and file banners in generated code
- MISRA and AUTOSAR Compliance
Generate code that is compliant with MISRA C/C++ and AUTOSAR C++ guidelines
- Global Variable Representation
Control global variable representation by using storage classes
- Verification
Show numerical equivalence between MATLAB code and generated code
- Performance
Execution time profiling, memory usage profiling, optimized code
- Code Replacement Customization
Create and maintain code replacement libraries