Real-Time Workshop    

2. Call the Target Language Compiler to Generate Code

In the second stage of the build procedure, the Target Language Compiler transforms the intermediate model description stored in model.rtw into target-specific code.

The Target Language Compiler is an interpreted programming language designed for the sole purpose of converting a model description into code. The Target Language Compiler executes a TLC program comprising several target files (.tlc script files). The TLC scripts specify how to generate code from the model, using the model.rtw file as input.

The TLC program consists of

The Target Language Compiler begins by reading in the model.rtw file. It then compiles and executes the commands in the target files -- first the system target file, then the individual block target files. The output of the Target Language Compiler is a source code version of the Simulink block diagram.


  1. Analyze the Model 3. Generate a Customized Makefile