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:
Coder supports a subset of core MATLAB language features, including program
control constructs, functions, and matrix operations. To generate C/C++ code, use
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.
- 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
Show numerical equivalence between MATLAB code and generated code
Execution time profiling, memory usage profiling, optimized code
- Code Replacement Customization
Create and maintain code replacement libraries