Target Language Compiler    

Search Algorithm for Locating Target Files

The Target Language Compiler has the following search path for block target files:

  1. The current directory
  2. The directory where the S-function executable (MEX or .m) file is located
  3. S-function directory's subdirectory ./tlc_c (for C language targets)

The first target file encountered with the required name that implements the proper language will be used in processing the S-function's model.rtw file entry.

Availability for Inlining and Noninlining

S-functions can be written in M, Fortran, and C. TLC inlining of S-functions is available as indicated in this table.

Table 1-1: Inline TLC Support by S-Function Type
S-Function Type
Noninlining Supported
Inlining Supported
M-file
No
Yes
Fortran MEX
No
Yes
C
Yes
Yes


  Inlining Process New Features and Compatibility Issues in Versions 4.0, 4.1, and 5.0