Skip to main content

IAR Embedded Workbench for RX 5.20

‑‑mfc

In this section:
Syntax

‑‑mfc

Description

Use this option to enable multi-file compilation. This means that the compiler compiles one or several source files specified on the command line as one unit, which enhances interprocedural optimizations.

Note

The compiler will generate one object file per input source code file, where the first object file contains all relevant data and the other ones are empty. If you want only the first file to be produced, use the -o compiler option and specify a certain output file.

Example

iccrx myfile1.c myfile2.c myfile3.c ‑‑mfc

See also

‑‑discard_unused_publics, ‑‑output, -o, and Multi-file compilation units.

Caution

Project>Options>C/C++ Compiler>Multi-file compilation