How Does MATLAB Deploy Functions?
To deploy MATLAB® functions, the compiler performs these tasks:
Analyzes files for dependencies using a dependency analysis function. Dependencies are files included in the generated package and originate from functions called by the file. Dependencies are affected by:
File type — MATLAB, Java®, MEX, and so on.
File location — MATLAB, MATLAB toolbox, user code, and so on.
For more information about dependency analysis, see Dependency Analysis Using MATLAB Compiler.
Validates MEX-files. In particular,
mexFunctionentry points are verified.
For more details about MEX-file processing, see MEX-Files, DLLs, or Shared Libraries.
Creates a deployable archive from the input files and their dependencies.
For more details about deployable archives, see Deployable Archive.
Generates target-specific wrapper code.
Generates target-specific binary package.
For library targets such as C++ shared libraries, Java packages, or .NET assemblies, the compiler invokes the required third-party compiler.