Code Generation Time
If code generation is taking too long, you have several options. You can choose settings that reduce code generation time. You can modularize your code into smaller segments for code generation. These strategies can enable shorter iterations between MATLAB® code development and code generation.
For more information about how to optimize your code for specific conditions, see Optimization Strategies.
|Call external C/C++ function|
Generate a MEX function that contains an abstract representation of the MATLAB code.
Generate C source code without building object code.
Do not create a code generation report if you want faster code generation.
Streamline code generation by modularizing your MATLAB code.
Reduce code generation time for constant-folding. Force constant-folding.