Command-Line Arguments
Target Language Compiler Switches
To call the Target Language Compiler, use
tlc [switch1 expr1 switch2 expr2 ...] filename.tlc
This table lists the switches you can use with the Target Language Compiler. Order does not makes a difference. Note that if you specify a switch more than once, the last one takes precedence.
Target Language Compiler Switches
Switch | Meaning |
---|---|
| Reads a database file (such as an |
| Sets the internal verbosity level to
|
| Adds the specified folder to the list of paths to be searched for TLC files. |
| Specifies that the output produced should be placed in the designated
folder, including files opened with |
| Specifies the maximum number of errors to report. Omitting this option
or omitting the |
| Parse TLC file only (do not execute). |
- | Performs some simple checks for performance and obsolete features. |
| Prints a dot ( |
| Invokes the TLC’s debug mode.
|
| Checks for cyclic records (records that reference each other, a source of memory leaks). |
| Specifies an initial value,
|
-shadow[0|1] | Enables a warning when an identifier-value pair of a record overwrites a local variable. The warning is disabled by default.
|
As an example, the command line
tlc -r myModel.rtw -v grt.tlc
specifies that myModel.rtw
should be read and used to process
grt.tlc
in verbose mode.
Filenames and Search Paths
Target files have the .tlc
extension. By default, block-level
files have the same name as the Type
of the block in which they appear.
You can override the search path for target files with your own local versions. The Target Language Compiler
finds target files along this path. If you specify additional search paths with the
-I
switch of the tlc
command or via the
%addincludepath
directive, the search order is:
Current folder.
Include paths specified in
%addincludepath
directives. The compiler evaluates multiple%addincludepath
directives from the bottom up.Include paths specified at the command line via
-I
. The compiler evaluates multiple-I
options from right to left.
Note
The compiler does not search the MATLAB® path, and will not find a file that is available only on that path. The compiler searches only the locations described above.
Related Topics
- Target Language Compiler Directives (Embedded Coder)