Setting Up the Code Generation Environment
For more information on the ±i option, see the TMS470R1x Assembly Lan- guage 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 alternate direc- tories that contain #include files and function libraries. To set the C_DIR envi- ronment variable, use this syntax:
-For C shells:
setenv C_DIR ªpathname1 [;pathname2 . . .]º
-For Bourne or Korn shells:
C_DIR=ªpathname1 [;pathname2 . . .]º export C_DIR
(Be sure to enclose the directory names within quotes.)
The pathnames are directories that contain #include files or libraries (such as stdio.h). You can separate pathnames with a semicolon or with blanks. In C source, you can use the #include directive without specifying path information. Instead, you can specify the path information with C_DIR.
Setting default shell options (C_OPTION)
You may find it useful to set the compiler, assembler, and linker default shell options using the C_OPTION environment variable. If you do this, the shell uses the default options and/or input filenames that you name with C_OPTION every time you run the shell.
Setting up default options with the C_OPTION environment variable is useful when you want to run the shell consecutive times with the same set of options and/or input files. After the shell reads the command line and the input file- names, it reads the C_OPTION environment variable and processes it.
To set the C_OPTION environment variable, use this syntax:
-For C shells:
setenv C_OPTION ºoption1 [option2 . . .]º
-For Bourne or Korn shells:
C_OPTION=ºoption1 [option2 . . .]º export C_OPTION
Setting Up the Code Generation Tools With SunOS |