### Set Compiler Options with Multiple Source Files

The syntax for the icc command is:

When you compile programs with multiple source files, an option applies to all the source files that follow it. For example, if you enter the following command:

        icc  /Oi+ main.c /Fa sub1.c /Lx /Oi- sub2.c

- The file main.c is compiled with the option /Oi+
- The file sub1.c is compiled with the options /Oi+ and /Fa+
- The file sub2.c is compiled with the options /Oi-, /Lx and /Fa+

The name of the executable module will be the same as the name of the first source file (main), but with the extension .exe.

Set Compiler Options

Summary of Compiler Options