Section 1: General Information
7
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual Not for Distribution
Beta Version February 2, 2001
The following Sierra C utilities support command line wildcard expansion:
nm68 Symbol Table Name Utility
size68 Object File Size Utility
1.3. Environment
Variables
Some Sierra C utilities need to know the location of certain standard directories
to locate various files. For example, the compiler must know where to search for
files specified by the #include
filename preprocessor directive. Since this
information varies depending on the installation, the utilities examine
environment variables to obtain information on the locations of these standard
directories.
Figure 1.1 shows the default standard include (include), standard library (lib),
executable (bin), and temporary (tmp) directories that are created by appending
subdirectory names to the directory specified by the SIERRA environment
variable. The SIERRA environment variable will be set when the setup program
for the TI FLASH Studio is executed. The SIERRA environment variable must be
set before using any of the Sierra utilities.
include lib bin tmp
sierra
Figure 1.1: Partial Sierra C Directory Structure
Table 1.1 lists the environment variables referenced by Sierra C utilities together
with the utilities that reference the variables and the files that are referenced.
Variable Utility Files referenced
INCLUDE68 com68 standard include files
LIB68 link68 standard libraries
link68 default configuration file
Table 1.1: Environment Variables
Depending on which environment variables are set, the utilities that generate
temporary files will put their files in one of four places. The three environment
variables TMP68, TMP, and SIERRA are searched for in the order listed with the
search terminating after the first defined variable is located. If either TMP68 or
TMP is defined, the directory specified by that environment variable is used to
hold temporary files. If the SIERRA environment variable is the only variable