| Target Language Compiler |
 |
Where to Go from Here
The remainder of this book contains both explanatory and reference material for the Target Language Compiler:
- 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.
Related Manuals
The items listed below are sections of other manuals that relate to the creation of TLC files.
- The Real-Time Workshop User's Guide describes the use and internal architecture of the Real-Time Workshop. the Code Generation and the Build Process chapter presents information on how TLC fits into the overall code generation process.
- The Simulink manual Writing S-Functions presents detailed information on all aspects of writing Fortran, M-file and C MEX S-functions. The most pertinent chapter from the point of view of the Target Language Compiler is the "Guidelines for Writing C MEX S-Functions" chapter, which details how to write wrappered and fully inlined S-functions with a special emphasis on the
mdlRTW() function.
| Compatibility Issues | | Getting Started |  |