### Set Compiler Options

You can set compiler options in three ways:

- On the command line
- In the ICC environment variable
- In a combination of the ICC environment variable and the command line

Options specified on the command line override the options in the ICC variable. Use /? to display a list of compiler options with descriptions.

Syntax

- Compiler options are not case-sensitive.
- You can substitute a dash (-) for the slash (/) preceding an option. For example, -Rn is equivalent to /Rn.
- You do not need the plus symbol (+) when specifying an option: the forms /L+ and /L are equivalent.
- Lowercase and uppercase, dashes, and slashes can all be used on one command line, as in:

>        icc  /ls  -RN  -gD  /Li  prog.c

Parameters for Compiler Options
Set Compiler Options with Multiple Source Files

Summary of Compiler Options
Scope of Compiler Options