Specifies the name for an output file.
IA-32, Intel® 64, IA-64 architectures
Linux and Mac OS X: | -ofile |
Windows: | None |
file |
Is the name for the output file. The space before file is optional. |
OFF |
The compiler uses the default file name for an output file. |
This option specifies the name for an output file as follows:
If -c is specified, it specifies the name of the generated object file.
If -S is specified, it specifies the name of the generated assembly listing file.
If -P is specified, it specifies the name of the generated preprocessor file.
Otherwise, it specifies the name of the executable file.
If you misspell a compiler option beginning with "o", such as -openmp, -opt-report, etc., the compiler interprets the misspelled option as an -o file option. For example, say you misspell "-opt-report" as " -opt-reprt"; in this case, the compiler interprets the misspelled option as "-o pt-reprt", where pt-reprt is the output file name.
Linux and Mac OS X: None
Windows: /Fe