Target Language Compiler |
 |
Where to Go from Here
The remainder of this book contains both explanatory and reference material for the Target Language Compiler:
- Getting Started, describes the process that the Target Language Compiler uses to generate code, and general inlining S-function concepts.
- A TLC Tutorial, contains a selection of examples with step-by-step instructions on how to use the TLC.
- Code Generation Architecture, describes the TLC files and the build process. It also provides a tutorial on how to write target language files.
- Contents of model.rtw, describes the
model.rtw
file.
- Directives and Built-in Functions, contains the language syntax for the Target Language Compiler.
- Debugging TLC Files,explains how to use the TLC debugger.
- Inlining S-Functions, describes how to use the Target Language Compiler and how to inline S-functions.
- TLC Function Library Reference, contains abstracts for the TLC functions.
- model.rtw, describes the complete contents of the
model
.rtw
file.
- TLC Error Handling, lists the error messages that the Target Language Compiler can generate, as well as how to best use the errors.
- 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 documentation 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 Targeting Real-Time Systems chapter offers further useful examples and customization guidelines.
- The Real-Time Workshop Embedded Coder documentation presents details on generating code for embedded targets. Among other topics, it covers data structures and program execution, code generation, custom storage classes, module packaging, and specifies system requirements and restrictions on target files.
- 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 |  |