User`s guide

mcc
7-32
In addition to the -G option, the -g option includes the -A debugline:on option.
This will have an impact on performance of the generated code. If you want to
have debugging information, but do not want the performance degradation
associated with the debug line information, use
-g -A debugline:off. The -g
option also includes the
-O none option, causing all compiler optimizations to
be turned off. If you want to have some optimizations on, you may specify them
after the debug option.
-m (Stand-Alone C). Produce a stand-alone C application. It includes helper
functions by default (
-h), and then generates a stand-alone C wrapper
(-W main). In the final stage, this option compiles your code into a stand-alone
executable and links it to the MATLAB C/C++ Math Library (
-T link:exe).
For example, to translate an M-file named
mymfile.m into C and to create a
stand-alone executable that can be run without MATLAB, use
mcc -m mymfile
The -m option is equivalent to the series of options
-W main -L C -t -T link:exe -h libmmfile.mlib
or
-B macro_option_m
-p (Stand-Alone C++).
Produce a stand-alone C++ application. It includes helper
functions by default (
-h), and then generates a stand-alone C++ wrapper (-W
main
). In the final stage, this option compiles your code into a stand-alone
executable and links it to the MATLAB C/C++ Math Library (
-T link:exe).
For example, to translate an M-file named
mymfile.m into C++ and to create a
stand-alone executable that can be run without MATLAB, use
mcc -p mymfile
The -p option is equivalent to the series of options
-W main -L Cpp -t -T link:exe -h libmmfile.mlib
or
-B macro_option_p