Target Language Compiler    

Code Generation Process

Real-Time Workshop invokes TLC after a Simulink model is compiled into an intermediate form that is suitable for generating code. In addition to TLC's library of functions, the two main classes of target files are:

System target files are used to specify the overall structure of the generated code. Block target files are used to implement the functionality of Simulink blocks, including user-defined S-function blocks.

You can create block target files for C MEX, Ada MEX, Fortran, and M-file S-functions to fully inline block functionality into the body of the generated code. C MEX S-functions can be noninlined, wrapper-inlined, or fully inlined. Ada and Fortran S-functions must be wrapper or fully inlined.


 Capabilities How TLC Determines S-Function Inlining Status