List of all diagnostic messages

Technical Note 19785

Architectures:

All

Component:

compiler

Updated:

11/6/2015 12:31 PM

Introduction

IAR compilers can be forced to export a list of all diagnostic messages.

Actions

From command line

  • Open a command prompt.
  • Enter a command line with three parts.
    • First is a reference (for example the icc430.exe in IAR Embedded Workbench for MSP430) to your compiler. (You might have to add the path to the location of the compiler.)
    • Second the option: --diagnostics_tables
    • Third a file name (for example messages.txt) and here you can/must also add a path so that the file is created where you have permissions to create a file.

So the command line (without paths) looks like:

icc430.exe --diagnostics_tables messages.txt
  • The file messages.txt is created in the directory you have pointed out with the path.

In IAR Embedded Workbench

  • Open Project > Options > C/C++ compiler > Extra options
  • Enable the extra options
  • Enter this command line option:
    --diagnostics_tables messages.txt​
  • the file messages.txt is created in the project directory.
  • Remove the command line option, as otherwise the file is generated each time you compile a file.

All product names are trademarks or registered trademarks of their respective owners.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.