| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
tlc [-options] [file]
tlc invokes the Target Language Compiler (TLC) from the command prompt. The TLC converts the model description file, model.rtw (or similar files), into target-specific code or text. Typically, you do not call this command because the Real-Time Workshop build process automatically invokes the Target Language Compiler when generating code. For more information, see Real-Time Workshop Target Language Compiler.
Note This command is used only when invoking the TLC separately from the Real-Time Workshop build process. You cannot use this command to initiate code generation for a model. |
tlc [-options] [file]
You can change the default behavior by specifying one or more compilation options as described in Options
You can specify one or more compilation options with each tlc command. Use spaces to separate options and arguments. TLC resolves options from left to right. If you use conflicting options, the rightmost option prevails. The tlc options are:
-r file_name
Specify the filename that you want to translate.
-v number
Specify a number indicating the verbose level. If you omit this option, the default value is one.
-l path
Specify a directory path to local include files. The TLC searches this path in the order specified.
-m number
Specify the maximum number of errors reported by the TLC prior to terminating the translation of the .tlc file.
If you omit this option, the default value is five.
-O path
Specify the directory path to place output files.
If you omit this option, TLC places output files in the current directory.
-da execute any %assert directives
-dc invoke the TLC command line debugger
-dn produce log files, which indicate those lines hit and those lines missed during compilation.
-do disable debugging behavior
-a identifier = expression
Specify parameters to change the behavior of your TLC program. For example, this option is used by the Real-Time Workshop software to set inlining of parameters or file size limits.
-p number
Print a '.' indicating progress for every number of TLC primitive operations executed.
-lint
Perform simple performance checks and collect runtime statistics.
-xO
Parse only a TLC file; do not execute it.
![]() | switchTarget | updateFilePathsAndExtensions | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |