浏览生成的代码
使用代码生成报告来浏览和理解生成代码
生成代码后,检查源代码并输出结果。代码生成报告提供了一个交互式界面,用于检查生成的 C/C++ 源文件、生成的数据类型和其他代码细节。通过使用报告信息对象以编程方式访问代码生成报告中的信息子集。
函数
getLineColumn | Find locations of beginning and end of MATLAB code involved in code generation |
属性
| coder.BuildLog Properties | Build logs produced during code generation |
| coder.CodeFile Properties | Description of file containing text that is involved in code generation |
| coder.File Properties | Description of file without text that is involved in code generation |
| coder.Function Properties | Description of MATLAB function used in code generation |
| coder.Message Properties | Description of message produced during code generation readiness analysis or during code generation |
| coder.Method Properties | Description of method in a MATLAB class used in code generation |
| coder.ReportInfo Properties | Code generation report information |
| coder.Summary Properties | Summary of code generation from MATLAB code |
主题
代码生成报告
- Code Generation Reports
View code generation results. - Tracing Generated C/C++ Code to MATLAB Source Code
Generate traceability tags. - Access Code Generation Report Information Programmatically
Access information about code generation such as input files, generated files, and error messages by using a report information object.
故障排除
- Avoid Duplicate Functions in Generated Code
Reduce the occurrence of duplicate functions in the generated code.
