Skip to main content

IAR Embedded Workbench for RL78 5.20

Invocation syntax

In this section:

You can use the compiler and linker either from the IDE or from the command line. See the IDE Project Management and Building documentation for information about using the build tools from the IDE.

Compiler invocation syntax

The invocation syntax for the compiler is:

iccrl78 [options] [sourcefile] [options]

For example, when compiling the source file prog.c, use this command to generate an object file with debug information:

iccrl78 prog.c ‑‑debug

The source file can be a C or C++ file, typically with the filename extension c or cpp, respectively. If no filename extension is specified, the file to be compiled must have the extension c.

Generally, the order of options on the command line, both relative to each other and to the source filename, is not significant. There is, however, one exception: when you use the -I option, the directories are searched in the same order as they are specified on the command line.

If you run the compiler from the command line without any arguments, the compiler version number and all available options including brief descriptions are directed to stdout and displayed on the screen.