Documentation

Code Generation Time

Reduce code generation time

如果代码生成是花费的时间太长,你有veral 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, seeOptimization Strategies.

Functions

coder.ceval Call external C/C++ function

Topics

Speed Up MEX Generation by Using JIT Compilation

Generate a MEX function that contains an abstract representation of the MATLAB code.

Speed Up Compilation by Generating Only Code

Generate C source code without building object code.

Disable Creation of the Code Generation Report

Do not create a code generation report if you want faster code generation.

Modularize MATLAB Code

Streamline code generation by modularizing your MATLAB code.

Use coder.const with Extrinsic Function Calls

Reduce code generation time for constant-folding. Force constant-folding.

Troubleshooting

JIT MEX Incompatibility Warning

Troubleshoot JIT MEX Incompatibilities.

JIT Compilation Does Not Support OpenMP

Troubleshoot JIT MEX incompatibility with OpenMP.

Was this topic helpful?