User`s guide

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.