Dependency Analysis Function

MATLAB® Compiler™ uses a dependency analysis function to determine the list of necessary files to include in the generated package. Sometimes, this process generates a large list of files, particularly when MATLAB object classes exist in the compilation and the dependency analyzer cannot resolve overloaded methods at compile time. Dependency analysis also processes include/exclude files on each pass.

    Tip   To improve compile time performance and lessen application size, prune the path with the mcc command's -N and -p flags. You can also specify Files required for your application in the compiler app.

The dependency analyzer searches for executable content such as:

  • MATLAB files

  • P-files

      Note:   If the MATLAB file corresponding to the p-file is not available, the dependency analysis will not be able to determine the p-file's dependencies.

  • Java® classes and .jar files

  • .fig files

  • MEX-files

The dependency analyzer does not search for data files of any kind. You must manually include data files in the search.

Was this topic helpful?