Code Generation fromMATLABCode
The Embedded Coder®product extends theMATLAB Coder™product with features that you can use for embedded software development. With the Embedded Coder product, you can generate code that has the clarity and efficiency of professional handwritten code. For example, you can:
Generate code that is compact and executes efficiently for embedded systems.
Customize the appearance of the generated code.
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 Codersupports a subset of core MATLAB language features, including program control constructs, functions, and matrix operations. To generate C/C++ code, use theMATLAB Coderapp or thecodegen
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. SeeEmbedded Coder Capabilities for Code Generation from MATLAB Code.
Categories
- Code Appearance
Control identifiers, code style, comments, and function and file banners in generated code - 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