mcc Command Line Arguments Grouped by Task
COM Components
Option | Description | Comment |
---|---|---|
-u | Registers COM component for current user only on development machine | Valid only for generic COM components and Microsoft® Excel® add-ins (requiring MATLAB® Compiler™) |
Deployable Archive
Option | Description | Comment |
---|---|---|
| Add | If you specify a folder name, all files in the folder are added. If you use a
wildcard ( |
-C | Directs | None |
| Specify a custom help text file. | Display help file contents at runtime using
|
Protect Source Code
Option | Description | Comment |
---|---|---|
-j | Automatically convert all | |
-k
"file= | Specify AES encryption key and MEX-file loader interface to retrieve decryption key at runtime. | If you do not specify any arguments after
|
-s | Obfuscate folder structures and file names in the deployable archive
(.ctf file) from the end user. |
Debugging
Option | Description | Comment |
---|---|---|
-? | Display help message. | None |
-g | Generate debugging information. | None |
-G | Same as | None |
-K | Directs |
|
-v | Verbose; display compilation steps. | None |
| Control the generation of function wrappers. |
|
MATLAB Compiler for Excel Add-Ins
Option | Description | Comment |
---|---|---|
-b | Generate Excel compatible formula function. | Requires MATLAB
Compiler. Cannot be used in a |
-u | Registers COM component for current user only on development machine | Valid only for generic COM components and Microsoft Excel add-ins (requiring MATLAB Compiler) |
MATLAB Path
Option | Description | Comment |
---|---|---|
-I | Add folder to search path for MATLAB files. | |
-N | Clear the path of all but a minimal, required set of folders. | None |
-p directory | Add | Requires |
mbuild
Option | Description | Comment |
---|---|---|
-f | Use the specified options file, |
|
-M string | Pass string to | Use to define compile-time options. |
MATLAB Runtime
Option | Description | Comment |
---|---|---|
| Specify run-time options for MATLAB Runtime. |
|
-S | Create Singleton MATLAB Runtime. | Default for generic COM components. Valid for Microsoft Excel and Java® packages. |
Override Default Inputs
Option | Description | Comment |
---|---|---|
-B
filename [:arg[,arg]] | Replace | The file should contain only
Cannot be used in a
|
Override Default Outputs
Option | Description | Comment |
---|---|---|
-d | Place output in specified folder. | None |
-e | Suppresses appearance of the MS-DOS Command Window when generating a standalone application. | Use The standalone app compiler suppresses the MS-DOS command window by default. To unsuppress it, unselect Do not display the Windows Command Shell (console) for execution in the Additional Runtime Settings area. |
-o outputfile | Specify name of final output file. | Adds appropriate extension |
Wrappers and Libraries
Option | Description | Comment |
---|---|---|
-c | Suppress compiling and linking of the generated C wrapper code. | Must be used in conjunction with the |
-l | Macro to create a function library. | Equivalent to |
-m | Macro to generate a standalone application. | Equivalent to |
| Control the generation of function wrappers. |
|
Licenses
Option | Description | Comment |
---|---|---|
-Y licensefile | Use | The >>!mcc -m foo.m -Y license.lic |