Specifying Executable Files

You can use the -ofile option to specify an alternate name for an executable file. This is especially useful when compiling and linking a set of input files. You can use the -ofile option to give the resulting file a name other than that of the first input file (source or object) on the command line.

In the next example, the command produces an executable file named outfile as a result of compiling and linking two source files.

IA-32 compiler:

prompt>ifc -ooutfile file1.f90 file2.f90

Itanium compiler:

prompt>efc -ooutfile file1.f90 file2.f90

Without the -ooutfile option, the command above produces an executable file named file1, the first input file in the command line.