Target Language Compiler    

Inlining S-Functions


To wrap or to inline, that is the question. Once you have decided, the following sections explain how to go about it, using the timestwo S-function as a running example. It turns out that inlining works almost identically for C, M-file and Fortran S-functions,
Writing Block Target Files to Inline S-Functions
Fully inlined versus wrapped S-functions
Inlining C MEX S-Functions
Calls made by C S-functions and how to handle them
Inlining M-File S-Functions
Accelerating M-file S-function performance
Inlining Fortran (F-MEX) S-Functions
The timestwo function coded in Fortran is handled the same
TLC Coding Conventions
Make your TLC code more robust by observing case conventions and using library functions
Block Target File Methods
Enumerates the functions needed to emit code for blocks
Loop Rolling
An example that handles multiple inputs
Error Reporting
Help in finding the source of trouble



  TLC Profiler Writing Block Target Files to Inline S-Functions