Build tools use a tool directory for configuring and locating their generated files. For the Microcontrollers V10.x build tools, the tool directory is the prog folder, and is located in the <CWInstallDir>\MCU folder, where CWInstallDir is the directory in which the CodeWarrior software is installed.
Build tools require information from the configuration files. There are two types of configuration data:
Global data is common to all build tools and projects, and includes data for each build tool, such as the directory path for recent project listings. All tools may store some global data in a mcutools.ini file. Each tool looks for this file in the tool directory first, then in the Microsoft Windows installation directory (for example, C:\WINDOWS). The following listing shows the locations for the global configuration file.
<CWInstallDir>\MCU\prog\mcutools.ini - #1 priority C:\WINDOWS\mcutools.ini - used if there is no mcutools.ini file above
The Compiler uses the initialization file in the prog folder if you start the tool from the prog folder.
That is, <CWInstallDir>\MCU\prog\mcutools.ini, where, CWInstallDir is the directory in which the CodeWarrior software is installed.
The Compiler uses the initialization file in the Windows directory if the tool is started outside the prog folder. That is, C:\WINDOWS\mcutools.ini
Local data files can be used by any build tool for a particular project. These files are typically stored in a project folder. For information about local configuration file entries, refer to the Local Configuration File Entries in the Appendices.
To configure the Compiler, proceed as follows:
The HC08 Compiler window appears.
The Tip of the Day dialog box closes.
The Saving Configuration as dialog box appears.
The folder becomes the project directory. The project directory folder is often referred as current directory.
The project directory folder now contains the newly-created project.ini configuration file. The project configuration file contains a copy of the [CHC08_Compiler] section of the project.ini file located in the prog folder. If a build tool modifies any project option, the changes are specified in appropriate section of the project configuration file.
The HC08 Compiler Option Settings dialog box appears.
The HC08 Compiler Option Settings dialog box closes.
The compiler is configured.