Barcode Reader User Manual

Setting Up the Code Generation Environment
4-6
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 .cshrc file (for C shells) or .profile file (for Bourne or Korn
shells) to change the path information, add the following to the end of the
path statement:
/
your_pathname
/
tool_dir
If you set the path statement from the command line, use this format:
For C shells:
set path=(/
your_pathname
/
tool_dir
$path)
For Bourne or Korn shells:
PATH=/
your_pathname
/
tool_dir
$PATH
The addition of $path or $PATH ensures that this path statement does not
undo the path statements in the .cshrc or .profile file.
Identifying alternate directories for the assembler (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:
For C shells:
setenv A_DIR ”
pathname
1
[;
pathname
2
]
For Bourne or Korn shells:
A_DIR=”
pathname
1
[;
pathname
2
]
export A_DIR
(Be sure to enclose the directory names within quotes.)
The
pathnames
are directories that contain copy/include files or macro librar-
ies. You can separate the pathnames with a semicolon or 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 –i option (which names alternate
directories), it searches the paths named by the A_DIR environment 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.