Technical data
Using the Target Language Compiler
1-5
By modifying the target files (also referred to as TLC files, for example, 
basic.tlc), you can customize the output generated by the Target Language 
Compiler. For more information on creating TLC files, see Chapter 3, “Writing 
Target Language Files.”
A Basic Example
The Real-Time Workshop graphical user interface provides a menu that 
automates the entire process of generating a 
model.rtw file, invoking the 
Target Language Compiler, and running the build process to generate an 
executable. This example uses command line operation of the Target Language 
Compiler in the same way that RTW’s graphical user interface invokes the 
Target Language Compiler to show the step-by-step process.
Starting with a simple Simulink model named 
small.mdl, this example 
illustrates how to use the Target Language Compiler on the output that is 
generated from the model.
Using this model, Real-Time Workshop generates an 
.rtw file, small.rtw, 
containing all of the model’s information. To generate the file from the 
command line, enter:
rtwgen small










