User`s guide

mcc
Purpose Invoke MATLAB Compiler
Syntax mcc [-options] mfile1 [mfile2 ... mfileN]
[C/C++file1 ... C/C++fileN]
Description mcc is the MATLAB command that invokes MATLAB C ompiler. You
can issue the
mcc command either from the MATLAB command prompt
(MATLAB mode) or the DO S or UNIX command line (standalo ne mode).
mcc prepares M-file(s) for deployment outside of the MATLAB
environment, generates wrapper files in C or C++, optionally builds
standalone binary files, and writes any resulting files into the current
directory, by default.
If more than one M-file is specified on the command line, M ATLAB
Compiler generates a C or C++ function for each M-file. If C or object
files are specified, they are passed to
mbuild along with any generated
Cfiles.
Options -a Add to Archive
Add a file to the CTF archive. Use
-a filename
to specify a file to be directly added to the CTF archive. Multiple -a
options are permitted. MATLAB Compiler looks for these files on the
MATLAB path , so spe ci fying the full pathname is optional. These files
are not passed to
mbuild, so you can include files such as data files.
If only a directory name is included with the
-a option, the entire
contents of that directory are added recursively to the CTF archive.
For example:
mcc -m hello.m -a ./testdir
In this example, testdir is a directory in the current working directory.
All files in
testdir,aswellasallfilesinsubdirectoriesoftestdir,
11-17