### Parameters for Compiler Options

For all compiler options that take parameters, the following rules apply:

- If a parameter is required, you can put zero or more spaces between the option and the parameter. For example, both /FeMyexe.exe and /Fe Myexe.exe are valid.
- If a parameter is optional, do not put spaces between the option and parameter. For example, /FlMylist.lst is valid, but /Fl Mylist.lst is not.
- For the /q... options that take more than one suboption or parameter, the suboptions or parameters must be separated by colons. For example, /qalias=ansi:typ is valid.

The syntax of the compiler options varies according to the type of parameter that is used with the option. Parameters can be switches (+ or -), numbers, strings or filenames.

Switches

- If an option is specified without a switch, '+' is assumed.
- The minus sign applies only to the switch immediately preceding it.

  For example, the following two option specifications have the same result:

         /La+ /Le+ /Ls+ /Lx-

         /Laesx-

Numbers

- When an option uses a number as a parameter, do not put a space between the option and the number. When an option uses two numbers as parameters, separate the numbers with a comma. Do not leave a space between the numbers and the comma. For example,

         /Sg10,132

  is the correct format.

Strings

- If an option has a string parameter, and the string contains spaces, enclose the string with a pair of double quotation marks. For example, /V"Version 1.0" is correct.
- If there are no spaces in the string, quotation marks are not necessary. For example, both /VNew and /V"New" are valid.
- If the string itself contains double quotation marks, precede these with the backslash (\) character. For example, if the string is abc"def, specify it on the command line as "abc\"def". This combination is the only escape sequence allowed within string options. Do not end a string with a backslash, as in "abc\".
- If the string is optional, do not put a space between the option and the string.

Filenames

- If you want to use a file that is in the current directory, specify only the filename.
- If the file is not in the current directory, specify the path and filename. For example, if your current directory is E:\, and your source file is E:\myprog.c, your executable file will be called myprog.exe. If you want to put the executable file into F:\ and call it newprog.exe, use the following command:

        icc  /FeF:\newprog.exe myprog.c

- If your filename contains spaces (as permitted by HPFS and NTFS) or any elements of the HPFS or NTFS extended character set, it must be enclosed in double quotation marks. In such a case, do not put a space between the option and a filename or directory.

Setting Compiler Options

Summary of Compiler Options