MATLAB COMPILER 4 Manuale Utente Pagina 3

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 21
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 2
2.2 mcc Compiler Option Flags
The following table gives a short overview of the most important compiler option flags
needed for generation of C/C++ code. For a complete list of all option flags refer to [4].
Option Description
-B filename Passes a bundle of compiler settings stored in filename to
the mcc. A set of predefined bundles are located in
matlab dir/toolbox/compiler/bundles.
-B sgl Builds an C stand-alone application linked to the C/C++ Graphics
Library. Equivalent to: -m -W mainhg libmwsglm.mlib
-c When used with a macro option, generates C code only.
-g Generates debugging information.
-G Debug only, no execution.
-h Compiles helper functions too.
-I directory Adds directory to path.
-L language Specifies output target language.
language = {C, Cpp}
-m Macro to generate a C stand-alone application.
Equivalent to: -W main -L C -t -T link:exe -h libmmfile.mlib
-o outputfile Specifies name/location of final executable.
-p Macro to generate a C++ stand-alone application.
Equivalent to: -W main -L Cpp -t -T link:exe -h libmmfile.mlib
-t Translates M code to C/C++ code
-T target Specify the desired output stage, available targets given in the list
below:
codegen Translates M-files to C/C++ files and generates a wrap-
per file (default).
compile:exe Same as codegen plus compiles C/C++ files to object
form suitable for linking into a standalone executable.
compile:lib Same as codegen plus compiles C/C++ files to object
form suitable for linking into a shared library/DLL.
link:exe Same as compile:exe plus links object files into a stan-
dalone executable.
link:lib Same as compile:lib plus links object files into a shared
library/DLL.
-v Verbose mode: displays compilation steps.
-W type Controls the generation of function wrappers.
type = {main, lib:libname}
libmwsglm.mlib Link to this library whenever needed.
Table 1: mcc compiler option flags for generating C/C++ code
3
Vedere la pagina 2
1 2 3 4 5 6 7 8 ... 20 21

Commenti su questo manuale

Nessun commento