Technical data
3
Writing Target
Language Files
A Basic Example
. . . . . . . . . . . . . . . . . . 3-2
Process . . . . . . . . . . . . . . . . . . . . . . . 3-2
Target Language Compiler Architecture
. . . . . . . 3-6
System Target Files . . . . . . . . . . . . . . . . . . 3-6
Block Functions . . . . . . . . . . . . . . . . . . . 3-7
Coding Conventions
. . . . . . . . . . . . . . . . 3-8
Writing a Block Target File
. . . . . . . . . . . . .3-15
TLC Block Setup Functions . . . . . . . . . . . . . .3-15
TLC Output Block Functions . . . . . . . . . . . . . .3-17
The RTW TLC Function Library
. . . . . . . . . . .3-20
Built-In TLC Functions . . . . . . . . . . . . . . . .3-30
Inlining an S-Function
. . . . . . . . . . . . . . .3-31
An Example . . . . . . . . . . . . . . . . . . . . .3-32
Configurable RTW Variables . . . . . . . . . . . . . .3-40
Matrix Parameters in RTW . . . . . . . . . . . . . .3-41
Loop Rolling
. . . . . . . . . . . . . . . . . . . .3-44