User`s guide

Common Uses of the Compiler
A-3
Create a C++ Library. To create a C++ library, use
mcc -p -W lib:libfoo -T compile:lib foo.m
Create a C Shared Library.
To create a C shared library that performs specialized
calculations that you can call from your own programs, use
mcc -W lib:mylib -L C -t -T link:lib -h Function1 Function2
Create MATLAB P-Code.
To translate an M-file named mymfile.m into MATLAB
P-code, use
mcc -B pcode mymfile
Note You can add the -g option to any of these for debugging purposes.