Setting Up the Code Generation Environment
1-5
Setting Up the Code Generation Tools With DOS or Windows 3.1x
Identifying the directory that contains the executable files (PATH statement)
You must include the
tool_dir
directory in your PATH statement so that you can
specify the assembler and compiler tools without specifying the name of the
directory that contains the executable files.
If you modify your autoexec.bat file to change the path information, add
the following to the end of the PATH statement:
;c:\
tool_dir
If you set the PATH statement from the command line, enter the following:
set PATH=c:\
tool_dir
;%PATH%
The addition of ;%PATH% ensures that this PATH statement does not
undo the PATH statements in any other batch files (including the
autoexec.bat file).
Identifying alternate directories for the assembler to search (A_DIR)
The assembler uses the A_DIR environment variable to name alternative
directories for the assembler to search. To set the A_DIR environment vari-
able, use this syntax:
set A_DIR=
pathname
1
[;
pathname
2
. . .]
The
pathnames
are directories that contain copy/include files or macro
libraries. You can separate the pathnames with a semicolon or with a blank.
Once you set A_DIR, you can use the .copy, .include, or.mlib directive in
assembly source without specifying path information.
If the assembler does not find the file in the directory that contains the current
source file or in directories named by the –ioption (which names alternate
directories), it searches the paths named by the A_DIR enviroment variable.
For more information on the –i option, see the
TMS470R1x Assembly
Language Tools User’s Guide
or the
TMS470R1x Optimizing C Compiler
User’s Guide.
Identifying alternate directories for the compiler to search (C_DIR)
The compiler uses the C_DIR environment variable to name alternative direc-
tories for the compiler to search. To set the C_DIR environment variable, use
this syntax:
set C_DIR=
pathname
1
[;
pathname
2
. . .]
The
pathnames
are directories that contain #include files or function libraries
(such as stdio.h). You can separate the pathnames with a semicolon or with
a blank. In C source, you can use the #include directive without specifying path
information. Instead, you can specify the path information with C_DIR.