User`s guide

Using Macros to Simplify Compilation
Using Macros to S implify Compilation
In this section...
“Macro Options” on page 5-5
“Understanding a Macro Option” on page 5-5
Macro Options
MATLAB Compiler, through its exhaustive set of options, gives you access
to the tools you need to do your job. If you want a simplified approach to
compilation, you can use one simple option, i.e., macro,thatallowsyouto
quickly accomplish basic compilation tasks. Macros let you group several
options toge the r to perform a particular type of compilation.
This table shows the relationship between the macro approach to accomplish
a standard compilation and the multio pti o n a lternative.
Macro
Option Bundle File Creates
Option Equivalence
Function Wrapper
| Output Stage
||
-l macro_opt ion_ l
Library
-W lib -T link:lib
-m macro_opt ion_ m
Standalone C application
-W main -T link:exe
Understanding a Macro Option
The -m option tells MATLAB Compiler to produce a standalone C application.
The
-m macro is equivalent to the series of options
-W main -T link:exe
This table shows the options that compose the -m macro and the information
that they provide to MATLAB Compiler.
5-5