With an HTML code generation report you can view the source files of the generated code and analyze information about the generated code such as code generation objectives, subsystems, code interface, and state code metrics. The code generation report provides traceability between the code and elements of the model. Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
View meta information about the generated code by using the Code Descriptor API. The Code Descriptor API describes the data interfaces, function interfaces, parameters and global data stores in the generated code.
|Return information about generated code|
|Return information about different types of data interfaces|
|Return information about entry-point functions|
|Return information about Lookup Table blocks that have tunable parameters|
|Return information about tunable breakpoint set data for a lookup table that has tunable parameters|
|Abstract class to get breakpoint set data information|
|Return information about evenly spaced breakpoint set data|
|Return information about non-evenly spaced breakpoint set data|
|Return data interface types|
|Return function interface types|
|Return array layout of the generated code|
|Return information of the specified data interface|
|Return data interface types in the generated code|
|Return information of the specified function interface|
|Return function interface types in the generated code|
|Return names of the referenced models|
|Determine whether object is a
| Return all associated
|Determine whether object is a
Access the generated code files and information about the generated code with the code generation report.
When the model is built, generate an HTML code generation report for analyzing the generated code.
After generating code, you can generate an HTML code generation report without rebuilding your model.
You can refer to existing code generation reports at any time.
At the MATLAB® command line, you can generate, open, and close an HTML Code Generation Report with the following functions:
To share the code generation report, you can package the code generation report files and supporting files into a zip file for transfer.
Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
Use the code interface report to see documentation of the generated code interface, including model entry-point functions and interface data, for consumers of the generated code.
The code generator performs static analysis of the generated C or C++ code and provides these metrics in the static code metrics report in the code generation report.
When generating code, generate a report that includes static code metrics, such as, the number of lines of code, size of global variables, and the number of reads and writes.
The Code Replacements Report section in the code generation report documents the code replacement library (CRL) functions that were used for code replacements during code generation.
Use standalone workflow to check code generator assumptions.
Explains how to use the Simulink® Report Generator™ software to generate a detailed report for a code generation project.