User`s guide
mcc
7-31
compilation, you can use one simple optio n, i.e., macro, that allows you to
quickly accomplish basic compilation tasks. If you want to take advantage of
the power of the Compiler, you can do whatever you desire t o do by choosing
various Compiler options.
This table shows the relationship between the macro approach to accomplish a
standard compilation and the multioption alternative.
Table 7-1: Macro Options
Macro
Option
Bundle File Creates Option Equivalence
Translate M to C/C++
| Function Wrapper
| | Target Language
| | | Output Stage
| | | | Helper Functions
|| | | |
| | | | | M-File Library
|| | | | |
-m
macro_option_m
Stand-aloneC
application
-t -W main -L C -T link:exe -h libmmfile.mlib
-p
macro_option_p
Stand-alone
C++
application
-t -W main -L Cpp -T link:exe -h libmmfile.mlib
-x
macro_option_x
MEX-function
-t -W mex -L C -T link:mexlibrary libmatlbmx.mlib
-S
macro_option_S
Simulink
S-function
-t -W simulink -L C -T link:mex libmatlbmx.mlib
-B sgl
sgl
Stand-aloneC
graphics
library
application
-m -W mainhg libmwsglm.mlib
-B sglcpp
sglcpp
Stand-alone
C++ graphics
library
application
-p -W mainhg libmwsglm.mlib
-B pcode
pcode
MATLAB
P-code
-t -L P
-g
macro_option_g
Enable debug
-G -A debugline:on -O none