Target Language Compiler    

Invoking TLC to Generate Code

Typically, rtwgen and TLC (as seen in the first section) are called directly from the Real-Time Workshop build procedure since the structure and arguments may change from release to release. However, while working with the TLC code, it may be a good idea to call rtwgen and TLC directly from the MATLAB prompt.

To generate the model.rtw file from the MATLAB prompt, it is typically enough to say

However, you may want to add the output option to place the file in the build directory. This generates the model.rtw file. However, you may specify other options to rtwgen such as whether or not to have case sensitivity for identifiers. For more details, type

at the MATLAB prompt.

Once the .rtw file generates, to run the Target Language Compiler on this file, type

This generates output as directed by file.tlc. Options to TLC include:

For more details, type

at the MATLAB prompt.


 A Basic Example Code Generation Concepts