User`s guide
mcc
7-36
MATLAB Compiler Option Flags
The MATLAB Compiler option flags perform various functions that affect the
generated code and how the Compiler behaves.This table showsthe categories
of the Compiler options.
The remainder of this reference page is subdivided into sections t hat
correspond to the Compiler option categories. Each section provides a full
description of all of the options in the category.
Macro Options
The macro options provide a simplified way to accomplish basic compilation
tasks.
-m (Stand-Alone C). Produce a st and-alone C application. It i ncl udes helper
functions by default (
-h), and then generates a stand-alone C wrapper
(-W main). In the final stage, this option compiles yo ur code into a stand-alone
executable and links it to the MATLAB C/C++ Math Library (
-T link:exe).
Table 7-3: Compiler Option Categories
Category Purpose
Macros The macro options simplify the compilation
process by combining the most common
compilation tasks into sing le options.
Code Generation These options affect the actual code that
the C ompiler generates. For example,
-L
specifies the target language as e ither C or
C++.
Compiler a nd Environment These options provide information to the
Compiler such as where to put (
-d) and find
(
-I) particular files.
mbuild/mex Thes e options provide information for the
mbuild and/or mex scripts.