Skip to main content

IAR Embedded Workbench for RISC-V 3.40

The IAR build tools—an overview

In this section:

In the IAR product installation you can find a set of tools, code examples, and user documentation, all suitable for developing software for RISC-V-based embedded applications. The tools allow you to develop your application in C, C++, or in assembler language.

Caution

IAR Embedded Workbench® is a powerful Integrated Development Environment (IDE) that allows you to develop and manage complete embedded application projects. It provides an easy-to-learn and highly efficient development environment with maximum code inheritance capabilities, and comprehensive and specific target support. IAR Embedded Workbench promotes a useful working methodology, and therefore a significant reduction in development time.

For information about the IDE, see the IDE Project Management and Building documentation.

Danger

The compiler, assembler, and linker can also be run from a command line environment, if you want to use them as external tools in an already established project environment.

Note

The same versions of the IAR build tools for RISC-V are delivered with various product editions. Despite that, differences in the host operating system’s environment settings, the length of file paths, etc., can result in non-identical ELF object files (full build output including symbol and debug information) being generated from the same source code. However, the byte-by-byte binary image of what goes into the target memory is expected to be identical regardless of whether the IAR tools are delivered as part of IAR Embedded Workbench or as part of IAR Build Tools, and regardless of the host operating system. If this is not the case, IAR treats it as a code generation error. The severity of such an error is low as long the generated code is correct in both cases (functionally the same).

The IAR C/C++ Compiler

The IAR C/C++ Compiler for RISC-V is a state-of-the-art compiler that offers the standard features of the C and C++ languages, plus extensions designed to take advantage of the RISC-V-specific facilities.

The IAR Assembler

The IAR Assembler for RISC-V is a powerful relocating macro assembler with a versatile set of directives and expression operators. The assembler features a built-in C language preprocessor, and supports conditional assembly.

Specific ELF tools

ILINK both uses and produces industry-standard ELF and DWARF as object format, additional IAR utilities that handle these formats are provided:

  • The IAR Archive Tool—iarchive—creates and manipulates a library (archive) of several ELF object files

  • The IAR ELF Tool—ielftool—performs various transformations on an ELF executable image (such as, fill, checksum, format conversion etc)

  • The IAR ELF Dumper for RISC-Vielfdumpriscv—creates a text representation of the contents of an ELF relocatable or executable image

  • The IAR ELF Object Tool—iobjmanip—is used for performing low-level manipulation of ELF object files

  • The IAR Absolute Symbol Exporter—isymexport—exports absolute symbols from a ROM image file, so that they can be used when linking an add-on application.

External tools

For information about how to extend the tool chain in the IDE, see Extending the toolchain.