Language Options > FORTRAN tab

(Builder: Project > Language Options for Selected Files... > FORTRAN tab)

FORTRAN version (drop-down list)

Standard

Interprets FORTRAN code in compliance with the ANSI FORTRAN standard.

F77

Interprets FORTRAN code for compatibility with AT&T's f77 compiler. Equivalent to the -f77 command line options.

DoD

Enables DoD FORTRAN extensions. Equivalent to the -dod command line option.

Vax/VMS

Interprets code for compatibility with DEC's VAX/VMS FORTRAN compiler. This includes all Dod extensions. Equivalent to the -vms command line option.

Extended

Allows as many general purpose language extensions as possible.

Enable Debug Lines

Compiles lines starting with d, D, x, or X. The default treats them as comments. This option enables debugging statements. Equivalent to the -d_line command line option.

Namelist

Enables the IBM and VMS compatible NAMELIST extensions in FORTRAN. These extensions are already enabled in VMS compatibility mode. Equivalent to the -namelist command line option.

132 columns

Extends source to interpret columns 1 through 132 instead of only 1 through 72. Equivalent to the -extend_source command line option.

Implicit Undefined

Makes the default data type for undeclared variables as "undefined", equivalent to coding IMPLICIT UNDEFINED(A-Z) at the top of the source file. Equivalent to the -u command line option.

Case Sensitive

Does not convert uppercase user-supplied variables to lowercase. By default, FORTRAN is not case sensitive and all FORTRAN names are converted to lowercase. The compiler and library both assume this translation is performed. This option generally accesses variables defined in C as uppercase. However, when using this option, all FORTRAN keywords must be lowercase, making the compiler incompatible with the ANSI FORTRAN-77 standard. Equivalent to the -U command line option.

Locals on Stack

Allocates local variables to registers or stacks, equivalent to coding IMPLICIT AUTOMATIC (A-Z) at the start of every subroutine or function. Programs compiled with this option are compliant with ANSI FORTRAN-77 and in some cases execute much more quickly. Equivalent to the -nosave command line option.

Check array bounds at runtime

Check that array subscripts are within the bounds of an array at runtime. Equivalent to the -boundcheck command line option.

One Trip Do Loops

Executes at least one iteration for every DO loop. By default, when the lower bound index of a DO loop is greater than the upper bound index, the compiler does not execute the DO loop for compatibility with the ANSI FORTRAN-77 standard. This option may be required for some older FORTRAN-66 programs to operate correctly. Equivalent to the -onetrip command line option.

VMS Common

Names COMMON blocks in the VMS style with a dollar sign appended. This option is enabled by default in VMS compatibility mode, but is also selected in F77 compatibility mode. Equivalent to the -vms_common command line option.

VMS Octal

Controls whether a double quotation mark is used for octal characters. If this is set, then the quotation mark is used for octal characters even in F77 and Extended modes. If this is not set, then the double quotation mark is an alternative to an apostrophe as a delimiter for character string constants. For example, PRINT*,"sofa sofa" prints sofa sofa. This is true even in VMS mode. The quotation mark is not allowed in Standard mode. Equivalent to the -vms_octal command line option.

2 Byte Integer

Sets the type for INTEGER to INTEGER*2. The default is INTEGER*4. Equivalent to the -i2 command line option.

Hollerithblankpad

Pads hollerith constants on the right with blanks. The default, compatible with F77 mode, is that only the first byte of the hollerith is significant and the constant zero is padded on the right. Equivalent to the -hollerith_blank_pad command line option.

Missing Args Ok

Allows CALL X(1,,2). Suppresses warning resulting from the missing argument. The compiler in either case passes a null value for the missing argument. Equivalent to the -missing_args_ok command line option.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.