Specifying Object Files

The compiler command always generates and keeps object files of the input source files and by default places them in the current directory. You can use the -ofile options to specify an alternate name for an object file.

For example:

IA-32 compiler:

prompt>ifc -ofile.o x.f90

Itanium(TM) compiler:

prompt>efc -ofile.o x.f90

In the above example, -o assigns the name file.o to an output object file rather than the default x.o.

To generate object files, specify a different object file anme, and suppress linking, use -c and -o combination.

IA-32 applications:

prompt>ifc -c -ofile.o x.f90

Itanium compiler:

prompt>efc -c -ofile.o x.f90

-o assigns the name file.o to an output object file rather than the default (x.o)

-c directs the compiler to suppress linking.