MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 160

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 159
5 Controlling Code Generation
5-34
Porting Generated Code to a Different Platform
The code generated by the MATLAB Compiler is portable among platforms.
However, if you build an executable from
foo.m on a PC running Windows, that
same file will not run on a UNIX system.
For example, you cannot simply copy
foo.mex (where the mex extension varies
by platform) from a PC to a Sun system and expect the code to work, because
binary formats are different on different platforms (all supported executable
types are binary). However, you could copy either all of the generated C code or
foo.m from the PC to the Sun system. Then, on the Sun platform you could use
mex or mcc to produce a foo.mex that would work on the Sun system.
Note Stand-alone applications require that the MATLAB C/C++ Math
Library be purchased for each platform where the Compiler-generated code
will be executed.
Vedere la pagina 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 273 274

Commenti su questo manuale

Nessun commento