Generating Listing Files

It was mentioned previously that the assembler output listing files are not generated without making configuration changes for the build target. To generate listing files, set up assembler options:

  1. In the CodeWarrior Projects view, right-click the assembler project for which you want to generate output listing files.
  2. Select Properties from the context menu that appears. The Properties for <project name> dialog box appears.
  3. Select C/C++ Build > Settings . The Tool Settings page appears in the right panel.
  4. Select S12Z Assembler > Output in the Tool Settings page.
  5. Specifies the name, %n, and path, %TEXTPATH, of the assembly listing file in the Generate listing file ( e.g. %(TEXTPATH)/%n.lst ) text box. For example, enter <Workspace>\Project_1/lis.lst in the text box, if <Workspace>\Project_1 and lis.lst are the path and name of the listing file, where <Workspace> is the current working directory.
  6. Click Apply to save the modified settings.
  7. Click OK to close the Properties dialog box.
  8. Right-click the project in the CodeWarrior Projects view and select Build Project from the context menu.

The listing file appears in the CodeWarrior Projects view under the specified directory.

The following figure displays the assembly listing file in the CodeWarrior Projects view.

Figure 1. CodeWarrior Projects View - Assembly Listing File
CodeWarrior Projects View - Assembly Listing File