Real-Time Workshop User's Guide    

Control Files

System Target Files

The Target Language Compiler (TLC) generates target-specific C or Ada code from an intermediate description of your Simulink block diagram (model.rtw). The Target Language Compiler reads model.rtw and executes a program consisting of several target files (.tlc files.) The output of this process is a number of source files, which are fed to your development system's make utility.

The system target file controls the code generation process. You will need to create a customized system target file to set code generation parameters for your target. We recommend that you copy, rename, and modify one of the standard system target files:

Chapter 2, Technical Overview2 and Chapter 3, Code Generation and the Build Process describe the role of the system target file in the code generation and build process. Guidelines for creating a custom system target file are given in Customizing the Build Process.

Template Makefiles

A template makefile (.tmf file) provides information about your model and your development system. Real-Time Workshop uses this information to create an appropriate makefile (.mk file) to build an executable program. Real-Time Workshop provides a large number of template makefiles suitable for different types of targets and development systems. The standard template makefiles are described in Template Makefiles and Make Options.

If one of the standard template makefiles meets your requirements, you can simply copy and rename it in accordance with the conventions of your project. If you need to make more extensive modifications, see Template Makefiles for a full description of the structure of template makefiles.


 Run-Time Interface for Embedded Targets Tutorial: Creating a Custom Target Configuration