Target Language Compiler    

Inlining S-Functions with TLC

Objective: To understand the differences between a noninlined S-function and an inlined S-function. This helps you develop a better understanding of when and how to inline S-functions.

Example directory: tlctutorial/timestwo

In this exercise, you will generate three versions of C code for an existing S-function called timestwo. The first version will not use inlined code. The second version will inline the function. The third version will inline a modification that you make to the model:

You'll learn the most by performing the exercise in the order presented.

A later exercise provides information and practice in the related area of "wrapping" S-functions.


  Passing and Using a Parameter Noninlined Code Generation