MATLAB Compiler | ![]() ![]() |
Uses of the Compiler
The MATLAB Compiler (mcc
) can translate M-files into C files. The resultant C files can be used in any of the supported executable types including MEX, executable, or library by generating an appropriate wrapper file. A wrapper file contains the required interface between the Compiler-generated code and a supported executable type. For example, a MEX wrapper contains the MEX gateway routine that sets up the left- and right-hand arguments for invoking the Compiler-generated code.
The code produced by the MATLAB Compiler is independent of the final target type -- MEX, executable, or library. The wrapper file provides the necessary interface to the target type.
![]() | Compiler Licensing Changes | Creating MEX-Files | ![]() |