Code Generation Fundamentals
Main steps of code generation workflow
Learn the fundamental steps for converting MATLAB® code to C and C++ code. These steps include preparing your MATLAB code for code generation, specifying input types, specifying code generation configuration settings, generating code, and exploring the generated code. To move through the fundamental steps of the code generation workflow, click on the boxes in the image below.
Categories
- MATLAB Code Preparation
Identify and fix issues in MATLAB code prior to code generation
- Input Specification
Specify properties of MATLAB function input variables to enable code generation
- Checking for Run-Time Issues
Check for run-time issues by generating trial MEX function before generating production code
- Configuring Code Generation
Configuration of code generation settings such as output file name, location, type, language
- Generating Code
Generate code and build standalone libraries and executables
- Exploring Generated Code
Use code generation reports to explore and understand the generated code