MATLAB COMPILER RELEASE NOTES Guida Utente Pagina 137

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 136
Supported Executable Types
5-21
MEX-Files
The -W mex -L C options produce the MEX-file wrapper, which includes the
mexFunction interface that is standard to all MATLAB plug-ins. For more
information about the requirements of the
mex interface, see “External
Interfaces/API.”
In addition to declaring globals and initializing the
feval function table, the
MEX-file wrapper function includes inte rface and defini tion functions for all
M-files not included into the set of compiled files. These functions are
implemented as callbacks to MATLAB.
Note By default, the -x option does not include any functions that do not
appear on the command line. Functions that do not appear on t he command
line would generate a callback to MATLAB. S pec ify
-h if you want all
functions ca lle d to be compile d into your MEX - fi le.
Main Files
You can generate C or C++ application wrappers that are suitable for building
C or C++stand-alone applications,respectively.These POSIX-compliant main
wrappers accept strings from the POSIX shell and return a status code. They
are meant to translate “command-like” M-files into POSIX main applications.
POSIX Main Wrapper
The POSIX main() function wrapper behaves exactly the same as the
command/function duality mode of MATLAB. That is, any command of the
form
command argument
canalsobewritteninthefunctionalform
command('argument')
If you write a function that accepts strings in MATLAB, that function will
compile to a POSIX main wrapper in such a way that it behaves the same from
theDOS/UNIXcommandlineasitdoesfromwithinMATLAB.
Vedere la pagina 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 263 264

Commenti su questo manuale

Nessun commento