Code Generation
C/C++ code generation and debugging, report generation
The code generator produces C and C++ code from Simulink®diagrams, Stateflow®charts, and MATLAB®functions. The generated code can be used for real-time and non-real-time applications, including rapid prototyping and simulation acceleration. You can generate code that represents a complete algorithm, or standalone utility code that several model blocks share. Configure code generation parameters to determine how the software generates code and builds executables from your model. Code generation reports allow you to view and analyze the generated code. Code replacement libraries help customize generated code to meet compliance standards, optimize for your run-time environment, or integrate with existing application code.
Frequently Used Topics
- Code Generation Basics
Overview of code generation process. - Run-Time Environment Configuration
Select and configure target environment that best aligns with your application goals. - Programming Language
Change programming language for generated code. - 工具链配置
Use model build process that generates optimized makefiles and supports custom toolchains - Code Appearance
Configure parameters that modify identifiers, code style, and comments. - Report Generation
Generate reports and obtain description of code generation results. - Sharing Utility Code
Set up reusable code for sharing. - Code Replacement
Customize code generated from a Simulink model using a code replacement library - Target Development
Implement a target for a specific CPU or board, add support for I/O devices.
Featured Examples
Was this topic helpful?