Code Generation
After iterating on a component model design, configure how the code generator produces code for components. You can configure the code generator to produce code that interfaces with external code and between subcomponents. Code interface configuration involves selecting an output type, configuring deployment types for elements of the model hierarchy, and mapping model elements to code definitions (storage classes and function customization templates).
When your configuration is complete, use the Model Advisor to check whether a component model is ready for code generation. From the component model, generate source code, object code or a program executable, or a shared library or utility code. Optionally, generate an HTML report that you can use to review, analyze, publish, or archive code generation results.
To get started, see Embedded Coder.
Categories
- Code Interface Configuration
Configure code interfaces to align with platform interface requirements
- Model Readiness for Code Generation
Check that your model meets code generation expectations and objectives
- Source Code Generation
Generate and verify source code modules for function deployment and integration
- Generated Code Compilation
Specify build process that compiles generated source code and links object code
- Shared Libraries and Utility Code
Generate shared libraries and reusable utility code that can be integrated and reused in applications on a development computer
- Report Generation
Generate reports of code generation results