Target Language Compiler |
 |
Target Language Compiler
The Target Language Compiler is an advanced feature within Real-Time Workshop that allows you to customize the code generated by Real-Time Workshop. The Target Language Compiler includes:
- A complete set of TLC files corresponding to each of the blocks provided with Simulink
- TLC files for model-wide information that specify header and parameter information
The TLC files are ASCII files that explicitly control the way code is generated by Real-Time Workshop. By editing a TLC file, you can alter the way code is generated for a particular block.
The Target Language Compiler provides a complete set of ready-to-use TLC files for generating ANSI C code. You can view the TLC files and make minor - or extensive - changes to them. This open environment gives you tremendous flexibility when it comes to customizing the code generated by Real-Time Workshop.
The topics included are:
- Chapter 1, Introducing the Target Language Compiler, provides an overview of the Target Language Compiler and the code generation process, and the advantages of inlining S-functions.
- Chapter 2, Getting Started, describes the process that the Target Language Compiler uses to generate code, and general inlining S-function concepts.
- Chapter 3, Code Generation Architecture, describes the TLC files and the build process. It also provides a tutorial on how to write target language files.
- Chapter 4, Contents of model.rtw, describes the
model
.rtw
file.
- Chapter 5, Directives and Built-in Functions,contains the language syntax for the Target Language Compiler.
- Chapter 6, Debugging TLC, explains how to use the TLC debugger.
- Chapter 7, Inlining S-Functions, describes how to use the Target Language Compiler and how to inline S-functions.
- Chapter 8, TLC Tutorial, contains a selection of examples with step-by-step instructions on how to use the TLC.
- Chapter 9, TLC Function Library Reference,contains abstracts for the TLC functions.
- Appendix A, model.rtw, describes the complete contents of the
model
.rtw
file.
- Appendix B, TLC Error Handling, lists the error messages that the Target Language Compiler can generate, as well as how to best use the errors.
- Appendix C, Using TLC with Emacs, is a reference for using Emacs to edit TLC files.
| Introducing the Target Language Compiler | |