Target Language Compiler    

Introduction

This set of tutorials provides a number of Target Language Compiler (TLC) exercises, each one organized as a major section.

All example models, S-functions, and TLC files needed for the exercises, are located in matlabroot/toolbox/rtw/rtwdemos/tlctutorial, where matlabroot is the root directory for MATLAB on your system. In this chapter, this directory is referred to as tlctutorial. Each example is located in a separate subdirectory within tlctutorial. Within that subdirectory, you can find worked-out solutions to the problem in a solutions subdirectory.

Each tutorial exercise is limited in scope, requiring just a small amount of experimentation. The tutorial explains details about TLC that will help customize and optimize code for Real-Time Workshop projects.

The exercises progress in difficulty from basic to more advanced. To get the most out of them, you should already be familiar with

If you encounter terms in the tutorials that you don't understand, it may be helpful to review Code Generation Concepts to acquaint yourself with the basic goals and methods of TLC programming. Similarly, if you see TLC keywords, built-in functions, or directives that you would like to know more about, please see Directives and Built-in Functions. Descriptions of TLC library functions are provided in TLC Function Library Reference.


  A TLC Tutorial Reading Record Files with TLC