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)
  4. S-function directory's subdirectory ./tlc_ada (for Ada 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, Ada, 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
Ada
No
Yes
C
Yes
Yes


 Inlining Process Target Language Compiler 4.0 New Features