MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 139

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 138
Supported Executable Types
5-23
Simulink S-Functions
The -W simulink -L C options produce a Simulink S -function wrapper.
Simulink S-function wrappers conform to the Simulink C S-function
conventions. The wrappers initialize:
The
sizes structure
The S-function’s sample times array
The S-function’s states and work vectors
The global variables and constant pool
For more information about Simulink S-function requirements, see Writing
S-Functions.
Note By default, the -S command 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.
C Libraries
The intent of the C library wrapper files is to allow theinclusion of an arbitrary
set of M-files into a static library or shared library. The header file contains all
of the entry points for all of the compiled M functions. The e xport list contains
the set of symbols that are exported from a C shared library.
Another benefit of creating a library is that you can compile a common set of
functions once. You can then compile other M-functions that depend on them
withoutrecompilingtheoriginalfunctions.You can accomplishthisusing
mlib
files, which are automatically generated when you generate the library. For
more information about
mlib files, see “mlib Files” on page 5-25.
Note Even if you are not producing a shared library, you must generate a
library wrapp er file w h en includ ing any C ompiler-generate d cod e into a larger
application.
Vue de la page 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 263 264

Commentaires sur ces manuels

Pas de commentaire