Controlling Compilation

You can control and modify the compilation process with the option sets as follows.

Controlling Compilation Phases

You can control which compilation phases you need to include in the compilation process.

IA-32 compiler:

prompt>ifc a.f -lm

Itanium™ compiler:

prompt>efc a.f -lm

Aliasing

The following options enable or disable compiler aliasing capability:

Translating Other Code to Fortran

With the -Tffile option, you can compile some other than Fortran code file as Fortran (translate to Fortran).

For example:

prompt>ifc -Tfa.c b.f

The above command will compile both a.c and b.f files as Fortran, link them, and create executable a.

Saving Compiler Version and Options Information, -sox

You save the compiler version and options information in the executable with -sox. The -sox option is enabled by default, which forces the compiler to embed in each object file a string that contains information on the compiler version and compilation options for each source file that has been compiled.

When you link the object files into an executable file, the linker places each of the information strings into the header of the executable. It is then possible to use a tool, such as a strings utility, to determine what options were used to build the executable file.

The size of the executable on disk is increased slightly by the inclusion of these information strings. If this is a concern, you can specify -sox- to disable this feature.

Note that for Itanium(TM)-based applications, the -sox option is accepted for compatibility, but it does not have any effect.