User`s guide
Configuration
Configuration
In this section...
“About the m build Utility” on page 2-7
“Configuring an ANSI C or C++ Compiler” on page 2-7
About the mbuild Utility
The mbuild script provides an easy way for you to specify an options file that
lets you:
• Set the default compiler and linker settings for each supported compiler.
• Change co mpile rs or compiler settings.
• Build yo ur application.
mbuild simplifies the process of setting up a C or C++ compiler. Typically,
you only need to use the
mbuild utility’s setup option once to specify which
third-party compiler you want to use. For m ore information on the
mbuild
utility, see the mbuild reference page.
MATLAB Compiler (
mcc) automatically invokes mbuild under certain
conditions. In particular,
mcc -m or mcc -l invokes mbuild to perform
compilati o n and linking.
See the reference page for more information about
mbuild. For example s
of
mbuild usage, see “Compiling the Driver Application” on page 7-6 and
“Compiling the Driver Application” on page 7-21.
Configuring an ANSI C or C++ Compiler
Compiler Options Files
Options f iles contain flags and settings that control the operation of your
installed C and C++ co mpiler. Options files are comp iler-specif ic, i.e., there
is a unique options file for each supported C/C++ compiler, which The
MathWorks provides.
2-7