Use JIT compilation for build type of MEX
Just-in-time (JIT) compilation mode
Description
App Configuration Pane: Advanced
Configuration Objects: coder.MexCodeConfig
Just-in-time (JIT) compilation mode.
To speed up generation of MEX functions, set EnableJIT
to
true
.
JIT compilation is incompatible with certain code generation features and options,
such as custom code or use of the OpenMP library. If you specify JIT compilation and the
code generator is unable to use it, it generates a C/C++ MEX function with a warning. If
EnableJIT
and EnableOpenMP
are
true
, and your code uses parfor
, the code
generator uses JIT compilation and treats the parfor
-loops as
for
-loops.
Settings
- Off
This value is the default value.
The code generator creates a C/C++ MEX function by generating and compiling C/C++ code.
- On
The code generator uses just-in-time (JIT) compilation technology for MEX function generation. The code generator creates a JIT MEX function that contains an abstract representation of the MATLAB® code. When you run the JIT MEX function, MATLAB generates the executable code in memory.
Programmatic Use
Property: EnableJIT |
Values: false |
true |
Default: false |
Version History
Introduced in R2016b