MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guide de l'utilisateur Page 172

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 210
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 171
4 Guidelines for Writing C MEX S-Functions
4-6
files),it embedssomeo f thisoverhead code inthe generatedC code.Ifyou want
to optimize your real-time code and elimi nate s ome o f the overhead code, you
must inline (or embed) your S-functions. This involves writing a TLC
(
sfunction.tlc) file that directs the Real-Time Workshop to eliminate all
overhead code from the generated code. The TargetLanguage Compiler, which
is pa rt of the Real-Time Workshop, processes
sfunction.tlc files to define
how to inline your S-function algorithm in the generated code.
Note The term inline should not be confused w ith the C++ inline keyword. In
MathWorks terminology, inl ine means to specify a textual string in place of
the call to the general S-function API routines (e.g.,
mdlOutputs). For example,
when we say that a TLC fil e is used to inline an S-function, we mean that the
generated code contains the appropriate C code that would normally appear
within t he S-function routines and the S-function itself has been removed
from the build process.
Vue de la page 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 209 210

Commentaires sur ces manuels

Pas de commentaire