MATLAB Compiler Previous page   Next Page

Understanding a Macro Option

The -m option tells the Compiler to produce a stand-alone C application. The -m macro is equivalent to the series of options

This table shows the options that compose the -m macro and the information that they provide to the Compiler.

Table 5-2: The -m Macro 
Option
Function
-W main
Produce a wrapper file suitable for a stand-alone application.
-T link:exe
Create an executable as the output.

Changing Macro Options

You can change the meaning of a macro option by editing the corresponding macro_option file bundle file in <matlabroot>/toolbox/compiler/bundles. For example, to change the -m macro, edit the file macro_option_m in the bundles directory.


Previous page  Using Macros to Simplify Compilation Using Pathnames Next page

© 1994-2005 The MathWorks, Inc.