MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guida Utente Pagina 172

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 210
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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.
Vedere la pagina 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 209 210

Commenti su questo manuale

Nessun commento