Recommended Compilation Options for codegen
-c Generate Code Only
Use the -c option to generate code only without invoking the
make command. If this option is used, codegen does
not generate compiled object code. This option saves you time during the development cycle
when you want to iterate rapidly between modifying MATLAB® code and generating C code and are mainly interested in inspecting the C
code.
For more information and a complete list of compilation options, see codegen.
-report Generate Code Generation Report
Use the -report option to generate a code generation report in HTML
format at compile time to help you debug your MATLAB code and verify that it is suitable for code generation. If the
-report option is not specified, codegen generates a
report only if compilation errors or warnings occur.
The code generation report contains the following information:
Summary of compilation results, including type of target and number of warnings or errors
Build log that records compilation and linking activities
Links to generated files
Error and warning messages
For more information, see codegen.