Skip to main content

IAR Embedded Workbench for RX 5.20

Building applications—an overview

In this section:

In the command line interface, the following line compiles the source file myfile.c into the object file myfile.o using the default settings:

iccrx myfile.c

You must also specify some critical options, see Basic project configuration.

On the command line, the following line can be used for starting the linker:

ilinkrx myfile.o myfile2.o -o a.out ‑‑config my_configfile.icf

In this example, myfile.o and myfile2.o are object files, and my_configfile.icf is the linker configuration file. The option -o specifies the name of the output file.

Note

By default, the label where the application starts is __iar_program_start. You can use the ‑‑entry command line option to change this.

Tip

When building a project, the IAR Embedded Workbench IDE can produce extensive build information in the Build messages window. This information can be useful, for example, as a base for producing batch files for building on the command line. You can copy the information and paste it in a text file. To activate extensive build information, right-click in the Build messages window, and select All on the context menu.