Configuring Compiler

Build tools use a tool directory for configuring and locating its generated files. For 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.

A build tool such as the Compiler requires information from configuration files. There are two types of configuration data:

To configure the Compiler, proceed as follows:

  1. Double-click crs08.exe, which is located in the <CWInstallDir>\MCU\prog folder.
  2. The RS08 Compiler window appears.
    Figure 1. RS08 Compiler Window
    RS08 Compiler Window
  3. Read the tips, if you want to, and then click Close.

    The Tip of the Day dialog box closes.

  4. Select File > New / Default Configuration from the RS08 Compiler window menu bar.
    Note: You can also use an existing configuration file if you desire. Use File > Load Configuration to open and read the configuration file.
  5. Select File > Save Configuration (or Save Configuration As).

    The Saving Configuration as dialog box appears.

  6. Browse and select the folder where you want to save the configuration. In this example, folder X15 is used to save the configuration.
    Figure 2. Saving Configuration as Dialog Box
    Saving Configuration as Dialog Box
  7. Click Save.

    The folder becomes the project directory. The project directory folder is often referred to as the current directory.

    Figure 3. Compiler's Current Directory Switches to your Project Directory
    Compiler's Current Directory Switches to your Project Directory

    The project directory folder now contains the newly-created project.ini configuration file. The project configuration file contains a copy of the [CRS08_Compiler] portion of the project.ini file in the build tools prog folder. If a build tool modifies any project option, the changes are specified in appropriate section of the project configuration file.

    Note: Option changes made to the project.ini file in the prog folder apply to all projects. Recall that this file stores the global tool options.
  8. Select Compiler > Options > Options from the RS08 Compiler window menu bar.

    The compiler displays the RS08 Compiler Option Settings dialog box.

    Figure 4. RS08 Compiler Option Settings Dialog Box
    RS08 Compiler Option Settings Dialog Box
  9. Select the Output tab.
  10. Check the Generate Listing Filecheckbox.
  11. Check the Object File Format checkbox and select the ELF/DWARF 2.0 option which appears for the Object File Format checkbox.
  12. Click OK.

    The RS08 Compiler Option Settings dialog box closes.

  13. Save the changes to the configuration by either:
    • selecting File > Save Configuration (Ctrl + S) or
    • clicking Save on the toolbar.

The compiler is now configured with the selected settings.

Note: For more information about configuring the Compiler options, refer to the Graphical User Interface.