Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Compiler output

In this section:

The compiler can produce the following output:

  • A linkable object file

    The object files produced by the compiler use the industry-standard format ELF. By default, the object file has the filename extension o.

  • Optional list files

    Various kinds of list files can be specified using the compiler option -l, see -l. By default, these files will have the filename extension lst.

  • Optional preprocessor output files

    A preprocessor output file is produced when you use the ‑‑preprocess option. The file will have the filename extension i, by default.

  • Diagnostic messages

    Diagnostic messages are directed to the standard error stream and displayed on the screen, and printed in an optional list file. For more information about diagnostic messages, see Diagnostics.

  • Error return codes

    These codes provide status information to the operating system which can be tested in a batch file, see Error return codes.

  • Size information

    Information about the generated amount of bytes for functions and data for each memory is directed to the standard output stream and displayed on the screen.

    Functions or data objects that can be shared between modules are reported as shared. If any of these occur in more than one module, only one copy is retained. For example, in some cases inline functions are not inlined, which means that they are marked as shared, because only one instance of each function will be included in the final application. This mechanism is sometimes also used for compiler-generated code or data not directly associated with a particular function or variable, and when only one instance is required in the final application.