Compatibility Options

The compatibility options let you specify how to make your source files and data files compatible with older Fortran versions or other operating systems, such as big endian unformatted data files, OpenVMS* systems run-time behavior, and Microsoft* Fortran PowerStation.

See Also

Data Options

Language Options

Descriptions of Compatibility Options

-1

Default: Off

Alternate syntax: -onetrip

Specifies that the compiler should execute DO loops at least once. See also -[no]f66.

-assume [no]bscc

Default: -assume nobscc

Alternate syntax: -nbs is the same as -assume nobscc

Tells the compiler to treat the backslash character (\) as a C-style control (escape) character in character literals. The default, -assume nobscc ("assume no BackSlashControlCharacters"), tells the compiler to treat the backslash character as a normal character instead of a control character in character literals.

This option is useful when transferring programs from non-UNIX* environments, such as OpenVMS*.

-convert

Default: -convert native

Specifies the format of unformatted files containing numeric data. Possible values are:

See Supported Native and Nonnative Numeric Formats.

-[no]f77rtl

Default: -nof77rtl

Specifies the use of FORTRAN 77 run-time behavior. If you use the default value (-nof77rtl), Intel Fortran run-time behavior is used.

Specifying this option controls the following run-time behavior:

-fpscomp all and -fpscomp none

Default: -fpscomp libs

Specifies that all the -fpscomp options for compatibility with Microsoft* Fortran PowerStation should be used. The default value specifies that the PowerStation portability library should be passed to the linker.

-fpscomp none specifies that no options for Fortran PowerStation compatibility should be used.

-fpscomp [no]filesfromcmd

Default: -fpscomp nofilesfromcmd

Specifies Microsoft* Fortran PowerStation behavior when the OPEN statement file specifier is blank. This option looks in the command-line arguments for unspecified filenames on an OPEN(. . . FILE=' ', . . .) and prompts for filenames at the terminal console.

-fpscomp [no]general

Default: -fpscomp nogeneral

Specifies that Microsoft* Fortran PowerStation semantics should be used where differences exist between Intel Fortran and PowerStation.

-fpscomp [no]ioformat

Default: -fpscomp noioformat

Specifies Microsoft* Fortran PowerStation semantic conventions and record formats for list-directed formatted I/O and unformatted I/O.

-fpscomp [no]ldio_spacing

Default: -fpscomp noldio_spacing

For list-directed output, controls whether a blank is inserted at run-time after a numeric value before a character value (undelimited character string). The default is -fpscomp noldio_spacing, which conforms to the Fortran 95 standard by inserting a blank after a numeric value before a character value. To request non-standard behavior for compatibility with Fortran PowerStation and Intel Fortran releases before Version 8.0, either specify -fpscomp ldio_spacing or specify -fpscomp general, which sets -fpscomp ldio_spacing.

-fpscomp [no]libs

Default: -fpscomp libs

Specifies that the PowerStation portability library should be passed to the linker.

-fpscomp [no]logicals

Default: -fpscomp nologicals

Specifies the internal binary representation of LOGICAL values and how they are used.

If nologicals is specified, integers with an odd value (low bit one) are treated as true, integers with an even value (low bit zero) are treated as false.  The literal constant .TRUE. has an integer value of -1 and the literal constant .FALSE. has an integer value of 0.

If logicals is specified, integers with a non-zero value are treated as true, integers with a zero value are treated as false.  The literal constant .TRUE. has an integer value of 1, and the literal constant .FALSE. has an integer value of 0.

The default, -fpscomp nologicals, is compatible with Compaq Fortran. Intel Fortran versions prior to 8.0 used the representation specified by -fpscomp logicals.

The internal representation of LOGICAL values is not specified by the Fortran standard. Programs which use integer values in LOGICAL contexts, or which pass LOGICAL values to procedures written in other languages, are non-portable and may not execute correctly. Intel recommends that you avoid coding practices that depend on the internal representation of LOGICAL values.

-prof_format_32 (IA-32 and Itanium®-based systems only)

Default: Off

Produces profile data with 32-bit counters. The default is to produce profile data with 64-bit counters to handle large numbers of events.

This option allows compatibility with earlier compilers.

-vms

Default: Off

Causes the run-time system to behave like HP Fortran on OpenVMS Alpha systems and VAX* systems (VAX FORTRAN*) in the following ways: