User`s guide

5 Compiler Commands
Command Overview
In this section...
“Compiler Options” on page 5-2
“Combining Options” on page 5-2
“Conflicting Options on the Command Line” on page 5-3
“Using File Extensions” on page 5-3
Compiler Options
mcc is the MATLAB command that in vokes MATLAB Compiler. You can issue
the
mcc command either from the MATLAB command prompt (MATLAB
mode) or the DOS or UNIX command line (standalone mode ).
Yo u may specify one or more MATLAB Compiler option flag s to
mcc.Most
option flags have a one-letter name. You can list options separately o n the
command line, for example,
mcc -m -g myfun
Macros are MathWo rks s upplied MATLAB Compiler options tha t simplify
the more common compilation tasks. Instead of manually g rouping several
options together to pe rfo rm a particular type of compilation, you can use a
simple macro option. You can a lways u se individual options to customize the
compilation process to satisfy your particular needs. For more i nfor mation on
macros, see “Using Macros to Simplify Compilation” on page 5-5.
Combining Options
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 -v -W main -T lin k:exe myfun % Options listed separately
5-2