Code Generation
C/C++ code generation and debugging, report generation
The code generator produces C and C++ code to use on embedded processors, on-target rapid prototyping boards, and microprocessors used in mass production. You can generate code that represents a complete algorithm, or standalone utility code that several model blocks share. Configure code generation parameters to generate target-specific code that adheres to your coding standards and meets your code generation objectives. Code generation reports and traceability between model and code support verification of your 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 and initiation of code generation - Run-Time Environment Configuration
Select and configure the target environment for your application - 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
自定义从Simulink生成的代码金宝app®model using a code replacement library - AUTOSAR Code Generation
Generate C/C++ code and XML component descriptions for AUTOSAR run-time environment - Target Development
开发部署MATLAB的自定义软件®and Simulink designs to hardware platforms