
For example, to change the -x macro, edit the file macro_option_x in the bundles directory. You can change the meaning of a macro option by editing the corresponding macro_option file bundle file in /toolbox/compiler/bundles. Link to this shared library whenever necessary.Ĭhanging Macro Options. Produce a wrapper file suitable for a stand-alone application.Īutomatically, find and compile helper functions included in the source M-file. Table 7-3, -m Macro, shows the options that compose the -m macro and the information that they provide to the Compiler. -t -W main -L C -T link:exe -h libmmfile.mlib.The -m macro is equivalent to the series of options The -m option tells the Compiler to produce a stand-alone C application. t -W simulink -L C -T link:mex libmatlbmx.mlib t -W mex -L C -T link:mexlibrary libmatlbmx.mlib t -W main -L Cpp -T link:exe -h libmmfile.mlib t -W main -L C -T link:exe -h libmmfile.mlib Table 7-2, Macro Options, shows the relationship between the macro approach to accomplish a standard compilation and the multioption alternative. If you want to take advantage of the power of the Compiler, you can do whatever you desire to do by choosing various Compiler options. If you want a simplified approach to compilation, you can use one simple option, i.e., macro, that allows you to quickly accomplish basic compilation tasks. The MATLAB Compiler, through its exhaustive set of options, gives you access to the tools you need to do your job. If you include 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. You can place multiple combined lists on the mcc command line. 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. mcc -Am full myfun % Options combined, A option not last.Mcc -mA full myfun % Options combined, A option last


Most option flags have a one-letter name. You may specify one or more MATLAB Compiler option flags to mcc. You can issue the mcc command either from the MATLAB command prompt (MATLAB mode) or the DOS or UNIX command line (stand-alone mode). Mcc is the MATLAB command that invokes the MATLAB Compiler.
