MATLAB Compiler Previous page   Next Page

Using Macros to Simplify Compilation

The 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, that allows you to quickly accomplish basic compilation tasks. Macros let you group several options together to perform a particular type of compilation.

This table shows the relationship between the macro approach to accomplish a standard compilation and the multioption alternative.

Table 5-1: Macro Options
Macro
Option

Bundle File
Creates
Option Equivalence

Function Wrapper
 |           Output Stage
 |            |

-l
macro_option_l
Library
-W lib       -T link:lib
-m
macro_option_m
Stand-alone C application
-W main      -T link:exe


Previous page  Setting Up Default Options Understanding a Macro Option Next page

© 1994-2005 The MathWorks, Inc.