User`s guide
mcc
7-30
7mcc
Purpose Invoke MATLAB Compiler.
Syntax mcc [-options] mfile1 [mfile2 ... mfileN]
[C/C++file1 ... C/C++fileN]
Description mcc is the MATLAB command that invokes the MATLAB Compiler. You can
issue the
mcc command either from the MATLAB command prompt (MATLAB
mode) o r the DOS or UNIX command line (stand-alone mode).
Command Line Syntax
You may specify one or more MATLAB Compiler option flags to mcc.Most
option flags have a one-letter name. You can list options separately on the
command line, for example,
mcc -m -g myfun
You can group options that do not take arguments by preceding the list of
option flags with a single dash (
-), for example,
mcc -mg myfun
Options that take arguments cannot be combined unless you place the option
with its arguments last in the list. For example, these formats are valid.
mcc -m -A full myfun % Options listed separately
mcc -mA full myfun % Options combined, A option last
This format is not valid.
mcc -Am full myfun % Options combined, A option not last
In cases where you have more than one option that takes arguments, you can
only include one of those options in a combined list and that option must be
last. You can place multiple combined lists on the
mcc command line.
If you inclu de any C or C++ filenames on the
mcc command line, the files are
passed directly to
mex or mbuild, along with any Compiler-generated C or C++
files.
Using Macros to Simplify Compilation
The MATLAB Compiler, through its exhaustive set of options, gives you access
to the tools you need to do your job. If you want a simplified approach to