All Topics  
Fortran

 
Fortran

   Email Print
   Bookmark   Link






 

Fortran



 
 
Fortran (previously FORTRAN) is a general-purpose, procedural, imperative programming language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
 that is especially suited to numeric computation
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
 and scientific computing. Originally developed by IBM in the 1950s for scientific and engineering applications, Fortran came to dominate this area of programming early on and has been in continual use for over half a century in computationally intensive areas such as numerical weather prediction
Numerical weather prediction

Numerical weather prediction uses current weather conditions as input into mathematical models of the atmosphere to weather forecasting. While the first efforts to accomplish this were done in the 1920's, it wasn't until the advent of the computer that it was feasible to do in real-time....
, finite element analysis, computational fluid dynamics
Computational fluid dynamics

Computational fluid dynamics is one of the branches of fluid mechanics that uses numerical methods and algorithms to solve and analyze problems that involve fluid flows....
 (CFD), computational physics
Computational physics

Computational physics is the study and implementation of numerical algorithms in order to solve problems in physics for which a quantitative theory already exists....
, and computational chemistry
Computational chemistry

Computational chemistry is a branch of chemistry that uses computers to assist in solving chemical problems. It uses the results of theoretical chemistry, incorporated into efficient computer programs, to calculate the structures and properties of molecules and solids....
.






Discussion
Ask a question about 'Fortran'
Start a new discussion about 'Fortran'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Fortran (previously FORTRAN) is a general-purpose, procedural, imperative programming language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
 that is especially suited to numeric computation
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
 and scientific computing. Originally developed by IBM in the 1950s for scientific and engineering applications, Fortran came to dominate this area of programming early on and has been in continual use for over half a century in computationally intensive areas such as numerical weather prediction
Numerical weather prediction

Numerical weather prediction uses current weather conditions as input into mathematical models of the atmosphere to weather forecasting. While the first efforts to accomplish this were done in the 1920's, it wasn't until the advent of the computer that it was feasible to do in real-time....
, finite element analysis, computational fluid dynamics
Computational fluid dynamics

Computational fluid dynamics is one of the branches of fluid mechanics that uses numerical methods and algorithms to solve and analyze problems that involve fluid flows....
 (CFD), computational physics
Computational physics

Computational physics is the study and implementation of numerical algorithms in order to solve problems in physics for which a quantitative theory already exists....
, and computational chemistry
Computational chemistry

Computational chemistry is a branch of chemistry that uses computers to assist in solving chemical problems. It uses the results of theoretical chemistry, incorporated into efficient computer programs, to calculate the structures and properties of molecules and solids....
. It is one of the most popular languages in the area of High-performance computing
High-performance computing

High-performance computing uses supercomputers and computer clusters to solve advanced computation problems. Today, computer systems approaching the teraflops-region are counted as HPC-computers....
 and programs to benchmark and rank the world's fastest supercomputers
TOP500

The TOP500 project ranks and details the 500 most powerful known computer systems in the world. The project was started in 1993 and publishes an updated list of the supercomputers twice a year....
 are written in Fortran.

Fortran (a blend
Blend

In linguistics, a blend is a word formed from parts of two other words. These parts are sometimes, but not always, morphemes.Linguistics...
 word derived from The IBM Mathematical Formula Translating System) encompasses a lineage of versions, each of which evolved to add extensions to the language while usually retaining compatibility with previous versions. Successive versions have added support for processing of character-based data (FORTRAN 77
Fortran

Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
), array programming
Array programming

In computer science, array programming languages generalize operations on scalar s to apply transparently to vector s, matrix , and higher dimensional arrays....
, module-based programming and object-based programming (Fortran 90
Fortran

Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
 / 95
Fortran

Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
), and object-oriented
Object-oriented programming

Object-oriented programming is a programming paradigm that uses "Object_" and their interactions to design applications and computer programs....
 and generic programming
Generic programming

Generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters and was pioneered by Ada which appeared in 1983....
 (Fortran 2003).

History

Ibm704
Fortrancardproj039
In late 1953, John W. Backus
John Backus

For the physicist, see John Backus John Warner Backus was an American computer scientist. He led the team that invented the first widely used High-level programming language programming language and was the inventor of the Backus-Naur form , the almost universally used notation to define formal language syntax....
 submitted a proposal to his superiors at IBM
IBM

International Business Machines Corporation, abbreviated IBM and nicknamed "Big Blue" , is a multinational corporation computer technology and consulting corporation headquartered in Armonk, New York, New York, United States....
 to develop a more efficient alternative to assembly language
Assembly language

An assembly language is a low-level language for programming computers. It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture....
 for programming their IBM 704
IBM 704

The IBM 704, the first mass-produced computer with floating point arithmetic hardware, was introduced by IBM in April, 1954. The 704 was significantly improved over the IBM 701 in terms of architecture as well as implementation, and was not compatible with its predecessor....
 mainframe computer. Backus' historic FORTRAN team consisted of programmers Richard Goldberg, Sheldon F. Best, Harlan Herrick, Peter Sheridan, Roy Nutt, Robert Nelson, Irving Ziller, Lois Haibt
Lois Haibt

Lois Haibt is perhaps most famous for being a member of the ten person team that invented FORTRAN, the first successful high level programming language....
 and David Sayre.

A draft specification for The IBM Mathematical Formula Translating System was completed by mid-1954. The first manual for FORTRAN appeared in October 1956, with the first FORTRAN compiler
Compiler

A compiler is a computer program that transforms source code written in a programming language into another computer language . The most common reason for wanting to transform source code is to create an executable program....
 delivered in April 1957. This was an optimizing compiler, because customers were reluctant to use a high-level programming language
High-level programming language

In computing, a high-level programming language is a programming language with strong Abstraction from the details of the computer. In comparison to low-level programming languages, it may use natural language elements, be easier to use, or more Porting across platforms....
 unless its compiler could generate code whose performance was comparable to that of hand-coded assembly language
Assembly language

An assembly language is a low-level language for programming computers. It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture....
.

While the community was skeptical that this new method could possibly out-perform hand-coding, it reduced the amount of programming statements necessary to operate a machine by a factor of 20, and quickly gained acceptance. Said creator John Backus during a 1979 interview with Think, the IBM employee magazine, "Much of my work has come from being lazy. I didn't like writing programs, and so, when I was working on the IBM 701
IBM 701

The IBM 701, known as the Defense Calculator while in development, was announced to the public on April 29, 1952, and was International Business Machines?s first commercial scientific computer....
 (an early computer), writing programs for computing missile trajectories, I started work on a programming system to make it easier to write programs."

The language was widely adopted by scientists for writing numerically intensive programs, which encouraged compiler writers to produce compilers that could generate faster and more efficient code. The inclusion of a complex number
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
 data type
Data type

A data type in programming languages is an attribute of a data which tells the computer something about the kind of data it is. This involves setting constraints on the datum, such as what values it can take and what operations may be performed upon it....
 in the language made Fortran especially suited to technical applications such as electrical engineering.

By 1960, versions of FORTRAN were available for the IBM 709
IBM 709

The IBM 709 was an early computer system introduced by International Business Machines in August, 1958. It was an improved version of the IBM 704 and the second member of the IBM 700/7000 series#Scientific Architecture of scientific computers....
, 650
IBM 650

The IBM 650 was one of International Business Machines?s early computers, and the world?s first mass production computer. It was announced in 1953, and over 2000 systems were produced between the first shipment in 1954 and its final manufacture in 1962....
, 1620
IBM 1620

The IBM 1620 was announced by International Business Machines on October 21, 1959 and marketed as an inexpensive "scientific computer". After a total production of about two thousand machines, it was withdrawn on November 19, 1970....
, and 7090
IBM 7090

The IBM 7090 was a second-generation transistorized version of the earlier IBM 709 vacuum tube mainframe computers and was designed for "large-scale scientific and technological applications"....
 computers. Significantly, the increasing popularity of FORTRAN spurred competing computer manufacturers to provide FORTRAN compilers for their machines, so that by 1963 over 40 FORTRAN compilers existed. For these reasons, FORTRAN is considered to be the first widely used programming language supported across a variety of computer architectures.

The development of FORTRAN paralleled the early evolution of compiler technology
History of compiler writing

In computing, a compiler is a computer program that transforms source code written in a programming language into another computer language . The most common reason for wanting to transform source code is to create an executable program....
; indeed many advances in the theory and design of compiler
Compiler

A compiler is a computer program that transforms source code written in a programming language into another computer language . The most common reason for wanting to transform source code is to create an executable program....
s were specifically motivated by the need to generate efficient code for FORTRAN programs.

FORTRAN

The initial release of FORTRAN for the IBM 704 contained 32 statements, including:

  • DIMENSION and EQUIVALENCE statements
  • Assignment statements
  • Three-way arithmetic IF
    Arithmetic IF

    The arithmetic IF statement has been for several decades a three-way arithmetic Conditional , starting from the very early version of Fortran, and including FORTRAN IV, FORTRAN 66 and FORTRAN 77....
     statement.
  • IF statements for checking exceptions (ACCUMULATOR OVERFLOW, QUOTIENT OVERFLOW, and DIVIDE CHECK); and IF statements for manipulating sense switches and sense lights
    Front panel

    A front panel was used on early electronic computers to display and allow the alteration of the state of the machine's internal CPU register and computer memory....
  • GOTO, computed GOTO, ASSIGN, and assigned GOTO
  • DO loops
  • Formatted I/O: FORMAT, READ, READ INPUT TAPE, WRITE, WRITE OUTPUT TAPE, PRINT, and PUNCH
  • Unformatted I/O: READ TAPE, READ DRUM, WRITE TAPE, and WRITE DRUM
  • Other I/O: END FILE, REWIND, and BACKSPACE
  • PAUSE, STOP, and CONTINUE
  • FREQUENCY statement (for providing optimization
    Optimization (computer science)

    In computing, optimization is the process of modifying a system to make some aspect of it work more efficiently or use fewer resources. For instance, a computer program may be optimized so that it executes more rapidly, or is capable of operating with less Computer data storage or other resources, or draw less power....
     hints to the compiler)


FORTRAN II

IBM's FORTRAN II appeared in 1958. The main enhancement was to support procedural programming
Procedural programming

Procedural programming can sometimes be used as a synonym for imperative programming , but can also refer to a programming paradigm based upon the concept of the procedure call....
 by allowing user-written subroutines and functions. Six new statements were introduced:

  • SUBROUTINE, FUNCTION, and END
  • CALL and RETURN
  • COMMON


Over the next few years, FORTRAN II would also add support for the DOUBLE PRECISION and COMPLEX data types.

Simple Fortran II program
This program, for Heron's formula
Heron's formula

In geometry, Heron's formula states that the area of a triangle whose sides have lengths a, b, and c iswhere s is the semiperimeter of the triangle:...
, has one data card input, with simple zero-data edit check. If one of the input values is zero or negative, then the program will end with an error code of "STOP 1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA on the "report" page following the compilation with no specific units are stated; and with a normal "STOP" in the job card listing.
C AREA OF A TRIANGLE WITH A STANDARD SQUARE ROOT FUNCTION
C INPUT - CARD READER UNIT 5, INTEGER INPUT
C OUTPUT - LINE PRINTER UNIT 6, REAL OUTPUT
C INPUT ERROR DISPLAY ERROR OUTPUT CODE 1 IN JOB CONTROL LISTING
      READ INPUT TAPE 5, 501, IA, IB, IC
  501 FORMAT (3I5)
C IA, IB, AND IC MAY NOT BE NEGATIVE
C FURTHERMORE, THE SUM OF TWO SIDES OF A TRIANGLE
C IS GREATER THAN THE THIRD SIDE, SO WE CHECK FOR THAT, TOO
      IF (IA) 777, 777, 701
  701 IF (IB) 777, 777, 702
  702 IF (IC) 777, 777, 703
  703 IF (IA+IB-IC) 777,777,704
  704 IF (IA+IC-IB) 777,777,705
  705 IF (IB+IC-IA) 777,777,799
  777 STOP 1
C USING HERON'S FORMULA WE CALCULATE THE
C AREA OF THE TRIANGLE
  799 S = FLOATF (IA + IB + IC) / 2.0
      AREA = SQRT( S * (S - FLOATF(IA)) * (S - FLOATF(IB)) *
     +     (S - FLOATF(IC)))
      WRITE OUTPUT TAPE 6, 601, IA, IB, IC, AREA
  601 FORMAT (4H A= ,I5,5H  B= ,I5,5H  C= ,I5,8H  AREA= ,F10.2,
     +13H SQUARE UNITS)
      STOP
      END


FORTRAN III

IBM also developed a FORTRAN III in 1958 that allowed for inline assembler code among other features; however, this version was never released as a product. Like the 704 FORTRAN and FORTRAN II, FORTRAN III included machine-dependent features that made code written in it unportable from machine to machine. Early versions of FORTRAN provided by other vendors suffered from the same disadvantage.

FORTRAN IV

Starting in 1961, as a result of customer demands, IBM began development of a FORTRAN IV that removed the machine-dependent features of FORTRAN II (such as READ INPUT TAPE), while adding new features such as a LOGICAL data type, logical Boolean expression
Boolean expression

A Boolean expression is an expression that results in a Boolean value, that is, TRUE or FALSE. For example, the value for 5 > 3 is TRUE, the value for "An apple is not a fruit" is FALSE....
s and the logical IF statement as an alternative to the arithmetic IF statement. FORTRAN IV was eventually released in 1962, first for the IBM 7030
IBM 7030

The IBM 7030, also known as Stretch, was IBM's first transistorized supercomputer. The first one was delivered to Los Alamos National Laboratory in 1961....
 ("Stretch") computer, followed by versions for the IBM 7090
IBM 7090

The IBM 7090 was a second-generation transistorized version of the earlier IBM 709 vacuum tube mainframe computers and was designed for "large-scale scientific and technological applications"....
 and IBM 7094.

By 1965, Fortran IV was supposed to be the "standard" and in compliance with American Standards Association X3.4.3 FORTRAN Working Group.

FORTRAN 66

Perhaps the most significant development in the early history of FORTRAN was the decision by the American Standards Association (now ANSI
American National Standards Institute

The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
) to form a committee to develop an "American Standard Fortran." The resulting two standards, approved in March 1966, defined two languages, FORTRAN (based on FORTRAN IV, which had served as a de facto standard), and Basic FORTRAN (based on FORTRAN II, but stripped of its machine-dependent features). The FORTRAN defined by the first standard became known as FORTRAN 66 (although many continued to refer to it as FORTRAN IV, the language upon which the standard was largely based). FORTRAN 66 effectively became the first "industry-standard" version of FORTRAN. FORTRAN 66 included:

  • Main program, SUBROUTINE, FUNCTION, and BLOCK DATA program units
  • INTEGER, REAL, DOUBLE PRECISION, COMPLEX, and LOGICAL data type
    Data type

    A data type in programming languages is an attribute of a data which tells the computer something about the kind of data it is. This involves setting constraints on the datum, such as what values it can take and what operations may be performed upon it....
    s
  • COMMON, DIMENSION, and EQUIVALENCE statements
  • DATA statement for specifying initial values
  • Intrinsic
    Intrinsic function

    In compiler theory, an intrinsic function is a function available in a given computer language whose implementation is handled specially by the compiler....
     and EXTERNAL (e.g., library) functions
  • Assignment statement
  • GOTO, assigned GOTO, and computed GOTO statements
  • Logical IF and arithmetic (three-way) IF statements
  • DO loops
  • READ, WRITE, BACKSPACE, REWIND, and ENDFILE statements for sequential I/O
  • FORMAT statement
  • CALL, RETURN, PAUSE, and STOP statements
  • Hollerith constant
    Hollerith constant

    Hollerith constants, named in honor of Herman Hollerith, were used in early FORTRAN programs to allow manipulation of character data.Early FORTRAN had no CHARACTER data type; only numeric types....
    s in DATA and FORMAT statements, and as actual arguments to procedures
  • Identifiers of up to six characters in length
  • Comment lines


FORTRAN 77

After the release of the FORTRAN 66 standard, compiler vendors introduced a number of extensions to "Standard Fortran", prompting ANSI in 1969 to begin work on revising the 1966 standard. Final drafts of this revised standard circulated in 1977, leading to formal approval of the new FORTRAN standard in April 1978. The new standard, known as FORTRAN 77, added a number of significant features to address many of the shortcomings of FORTRAN 66:

  • Block IF and END IF statements, with optional ELSE and ELSE IF clauses, to provide improved language support for structured programming
    Structured programming

    Structured programming can be seen as a subset or subdiscipline of procedural programming, one of the major programming paradigms. It is most famous for removing or reducing reliance on the GOTO Statement ....
  • DO loop extensions, including parameter expressions, negative increments, and zero trip counts
  • OPEN, CLOSE, and INQUIRE statements for improved I/O capability
  • Direct-access file I/O
  • IMPLICIT statement
  • CHARACTER data type, with vastly expanded facilities for character input and output and processing of character-based data
  • PARAMETER statement for specifying constants
  • SAVE statement for persistent local variables
  • Generic names for intrinsic functions
  • A set of intrinsics (LGE, LGT, LLE, LLT) for lexical comparison of strings, based upon the ASCII
    ASCII

    American Standard Code for Information Interchange , is a coding standard that can be used for interchanging information, if the information is expressed mainly by the written form of English words....
     collating sequence.
(ASCII functions were demanded by the U. S. Department of Defense
United States Department of Defense

The United States Department of Defense is the federal department charged with coordinating and supervising all agencies and functions of the government relating directly to national security and the Military of the United States....
, in their conditional approval vote.)


In this revision of the standard, a number of features were removed or altered in a manner that might invalidate previously standard-conforming programs. (Removal was the only allowable alternative to X3J3 at that time, since the concept of "deprecation" was not yet available for ANSI standards.) While most of the 24 items in the conflict list (see Appendix A2 of X3.9-1978) addressed loopholes or pathological cases permitted by the previous standard but rarely used, a small number of specific capabilities were deliberately removed, such as:
  • Hollerith constant
    Hollerith constant

    Hollerith constants, named in honor of Herman Hollerith, were used in early FORTRAN programs to allow manipulation of character data.Early FORTRAN had no CHARACTER data type; only numeric types....
    s and Hollerith data, such as:
GREET = 12HHELLO THERE!
  • Reading into a H edit (Hollerith field) descriptor in a FORMAT specification.
  • Overindexing of array bounds by subscripts.
DIMENSION A(10,5) Y= A(11,1)
  • Transfer of control into the range of a DO loop (also known as "Extended Range").


An important practical extension to FORTRAN 77 was the release of MIL-STD-1753 in 1978. This specification, developed by the U. S. Department of Defense
United States Department of Defense

The United States Department of Defense is the federal department charged with coordinating and supervising all agencies and functions of the government relating directly to national security and the Military of the United States....
, standardized a number of features implemented by most FORTRAN 77 compilers but not included in the ANSI FORTRAN 77 standard. These features would eventually be incorporated into the Fortran 90 standard.

  • DO WHILE and END DO statements
  • INCLUDE statement
  • IMPLICIT NONE variant of the IMPLICIT statement
  • Bit manipulation
    Bit manipulation

    Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a byte. Computer programming tasks that require bit manipulation include low-level device control, error detection and error correction algorithms, encryption algorithms, and optimization ....
     intrinsic functions, based on similar functions included in Industrial Real-Time Fortran (ANSI/ISA S61.1 (1976))
    Industrial Real-Time Fortran

    Industrial Real-Time Fortran was developed, during the decade of 1970-1980, to augment the Fortran language with library bindings useful for process and device control, and I/O....


The IEEE 1003.9 POSIX
POSIX

POSIX or "Portable Operating System Interface" is the collective name of a family of related standardizations specified by the Institute of Electrical and Electronics Engineers to define the application programming interface , along with shell and utilities interfaces for software compatible with variants of the Unix operating system, altho...
 Standard, released in 1991, provided a simple means for Fortran-77 programmers to issue POSIX system calls. Over 100 calls were defined in the document — allowing access to POSIX-compatible process control, signal handling, file system control, device control, procedure pointing, and stream I/O in a portable manner.

The development of a revised standard to succeed FORTRAN 77 would be repeatedly delayed as the standardization process struggled to keep up with rapid changes in computing and programming practice. In the meantime, as the "Standard FORTRAN" for nearly fifteen years, FORTRAN 77 would become the historically most important dialect.

Control Data Corporation
Control Data Corporation

Control Data Corporation was one of the pioneering supercomputer firms. For most of the 1960s, it built the fastest computers in the world by far, only losing that crown in the 1970s to what was effectively a spinoff, after Seymour Cray left the company to found Cray Research, Inc....
 computers had another version of FORTRAN 77, called Minnesota FORTRAN, with variations in output constructs, special uses of COMMONs and DATA statements, optimizations code levels for compiling, and detailed error listings, extensive warning messages, and debugs.

Fortran 90

The much delayed successor to FORTRAN 77, informally known as Fortran 90, was finally released as an ISO standard in 1991 and an ANSI Standard in 1992. This major revision added many new features to reflect the significant changes in programming practice that had evolved since the 1978 standard:

  • Free-form source input
    Free-form language

    In computer programming, a free-form language is a programming language in which the positioning of character on the page in program text is not significant....
    , also with lowercase Fortran keywords
  • Identifiers up to 31 characters in length
  • Inline comments
  • Ability to operate on arrays (or array sections) as a whole, thus greatly simplifying math and engineering computations.
    • whole, partial and masked array assignment statements and array expressions, such as   X(1:N)=R(1:N)*COS(A(1:N)))
    • WHERE statement for selective array assignment
    • array-valued constants and expressions,
    • user-defined array-valued functions and array constructors.
  • RECURSIVE
    Recursion (computer science)

    Recursion is a way of thinking about and solving problems. In fact, Recursion_ is one of the central ideas of computer science. Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem....
     procedures
  • Modules, to group related procedures and data together, and make them available to other program units, including the capability to limit the accessibility to only specific parts of the module.
  • A vastly improved argument-passing mechanism, allowing interfaces
    Type signature

    Type signature is a term that is used in computer programming. A type signature defines the inputs and outputs for a subroutine or method ....
     to be checked at compile time
  • User-written interfaces for generic procedures
  • Operator overloading
    Operator overloading

    In computer programming, operator overloading is a specific case of polymorphism in which some or all of operator s like +, =, or have different implementations depending on the types of their arguments....
  • Derived/abstract
    Abstract data type

    In computing, an abstract data type is a specification of a set of data and the set of operations that can be performed on the data. Such a data type is abstract in the sense that it is independent of various concrete implementations....
     data types
  • New data type declaration syntax, to specify the data type and other attributes of variables
  • Dynamic memory allocation
    Dynamic memory allocation

    In computer science, dynamic memory allocation is the allocation of computer storage storage for use in a computer program during the runtime of that program....
     by means of the ALLOCATABLE attribute and the ALLOCATE and DEALLOCATE statements
  • POINTER attribute, pointer assignment, and NULLIFY statement to facilitate the creation and manipulation of dynamic data structures
  • Structured looping constructs, with an END DO statement for loop termination, and EXIT and CYCLE statements for "breaking out" of normal DO loop iterations in an orderly way
  • SELECT . . . CASE construct for multi-way selection
  • Portable specification of numerical precision under the user's control
  • New and enhanced intrinsic procedures.


Obsolescence & deletions
Unlike the previous revision, Fortran 90 did not delete any features. (Appendix B.1 says, "The list of deleted features in this standard is empty.") Any standard-conforming FORTRAN 77 program is also standard-conforming under Fortran 90, and either standard should be usable to define its behavior.

A small set of features were identified as "obsolescent" and expected to be removed in a future standard.
Obsolescent feature Example Status / 95
Arithmetic IF-statement     IF (X) 10, 20, 30  
Non-integer DO parameters or control variables     DO 9 X= 1.7, 1.6, -0.1 Deleted
Shared DO-loop termination or
termination with a statement
other than END DO or CONTINUE  
    DO 9 J= 1, 10
        DO 9 K= 1, 10
9   L= J + K
Branching to END IF
from outside a block
66  GO TO 77 ; . . .
    IF (E) THEN ;     . . .
77  END IF
Deleted
Alternate return     CALL SUBR( X, Y *100, *200 )  
PAUSE statement     PAUSE 600 Deleted
ASSIGN statement
  and assigned GO TO statement
100  . . .     ASSIGN 100 TO H
    . . .
    GO TO H . . .
Deleted
Assigned FORMAT specifiers     ASSIGN F TO 606 Deleted
H edit descriptors 606 FORMAT ( 9H1GOODBYE. ) Deleted
Computed GO TO statement     GO TO (10, 20, 30, 40), index (Obso.)
Statement functions     FOIL( X, Y )= X**2 + 2*X*Y + Y**2 (Obso.)
DATA statements
  among executable statements
    X= 27.3
    DATA A, B, C / 5.0, 12.0. 13.0 /     . . .
(Obso.)
CHARACTER* form of CHARACTER declaration     CHARACTER*8 STRING   ! Use CHARACTER(8) (Obso.)
Assumed character length functions
Fixed form source code * Column 1 contains * or ! or C for comments.
C       Column 6 for continuation.
 


Fortran 95

Fortran 95 was a minor revision, mostly to resolve some outstanding issues from the Fortran 90 standard. Nevertheless, Fortran 95 also added a number of extensions, notably from the High Performance Fortran
High Performance Fortran

High Performance Fortran is an extension of Fortran 90 with constructs that support parallel computing, published by the High Performance Fortran Forum ....
 specification:

  • FORALL and nested WHERE constructs to aid vectorization
  • User-defined PURE and ELEMENTAL procedures
  • Pointer initialization and structure default initialization.


A number of intrinsic functions were extended (for example a dim argument was added to the maxloc intrinsic).

Several features noted in Fortran 90 to be deprecated were removed from Fortran 95:

  • DO statements using REAL and DOUBLE PRECISION variables
  • Branching to an END IF statement from outside its block
  • PAUSE statement
  • ASSIGN and assigned GOTO statement, and assigned format specifiers
  • H edit descriptor.


An important supplement to Fortran 95 was the ISO technical report TR-15581: Enhanced Data Type Facilities, informally known as the Allocatable TR. This specification defined enhanced use of ALLOCATABLE arrays, prior to the availability of fully Fortran 2003-compliant Fortran compilers. Such uses include ALLOCATABLE arrays as derived type components, in procedure dummy argument lists, and as function return values. (ALLOCATABLE arrays are preferable to POINTER-based arrays because ALLOCATABLE arrays are guaranteed by Fortran 95 to be deallocated automatically when they go out of scope, eliminating the possibility of memory leak
Memory leak

In computer science, a memory leak is a particular type of unintentional memory consumption by a computer program where the program fails to release dynamic memory when no longer needed....
age. In addition, aliasing
Aliasing (computing)

In computing, aliasing describes a situation in which a data location in memory can be accessed through different symbolic names in the program....
 is not an issue for optimization of array references, allowing compilers to generate faster code than in the case of pointers.)

Another important supplement to Fortran 95 was the ISO
International Organization for Standardization

The International Organization for Standardization , widely known as ISO , is an international standard-setting body composed of representatives from various national standards organizations....
 technical report TR-15580: Floating-point exception handling, informally known as the IEEE TR. This specification defined support for IEEE floating-point arithmetic and floating point
Floating point

In computing, floating point describes a system for numerical representation in which a String of digits represents a rational number.The term floating point refers to the fact that the radix point can "float": that is, it can be placed anywhere relative to the Significant figures of the number....
 exception handling
Exception handling

Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions - special conditions that change the normal flow of execution....
.

Conditional compilation and varying length strings
In addition to the mandatory "Base language" (defined in ISO/IEC 1539-1 : 1997), the Fortran 95 language also includes two optional modules:
  • Varying character strings (ISO/IEC 1539-2 : 2000)
  • Conditional compilation (ISO/IEC 1539-3 : 1998)
which, together, comprise the multi-part International Standard (ISO/IEC 1539).

According to the standards developers, "the optional parts describe self-contained features which have been requested by a substantial body of users and/or implementors, but which are not deemed to be of sufficient generality for them to be required in all standard-conforming Fortran compilers." Nevertheless, if a standard-conforming Fortran does provide such options, then they "must be provided in accordance with the description of those facilities in the appropriate Part of the Standard."

Fortran 2003

The most recent standard, Fortran 2003, is a major revision introducing many new features. A comprehensive summary of the new features of Fortran 2003 is available at the Fortran Working Group (WG5) official Web site.

From that article, the major enhancements for this revision include:
  • Derived type enhancements: parameterized derived types, improved control of accessibility, improved structure constructors, and finalizers.
  • Object oriented programming support: type extension and inheritance
    Inheritance (computer science)

    In object-oriented programming, inheritance is a way to form new class es using classes that have already been defined. The inheritance concept was invented in 1967 for Simula....
    , polymorphism, dynamic type allocation, and type-bound procedures.
  • Data manipulation enhancements: allocatable components (incorporating TR 15581), deferred type parameters, VOLATILE attribute
    Volatile variable

    In computer programming, particularly in the C and C++ programming languages, a variable or Object declared with the volatile keyword may be modified externally from the declaring object....
    , explicit type specification in array constructors and allocate statements, pointer enhancements, extended initialization expressions, and enhanced intrinsic procedures.
  • Input/output enhancements: asynchronous
    Asynchrony

    Asynchrony, in the general meaning, is the state of not being synchronization.* Asynchronous learning* Collaborative editing systemsIn specific terms of digital logic and physical layer of communication, an asynchronous process does not require a clock signal....
     transfer, stream access, user specified transfer operations for derived types, user specified control of rounding during format conversions, named constants for preconnected units, the FLUSH statement, regularization of keywords, and access to error messages.
  • Procedure pointers
    Function pointer

    A function pointer is a type of pointer in C , C++, D programming language, and other C-like programming languages. When Dereference operator, a function pointer invokes a subroutine, passing it zero or more arguments just like a normal function....
    .
  • Support for IEEE floating-point arithmetic and floating point
    Floating point

    In computing, floating point describes a system for numerical representation in which a String of digits represents a rational number.The term floating point refers to the fact that the radix point can "float": that is, it can be placed anywhere relative to the Significant figures of the number....
     exception handling
    Exception handling

    Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions - special conditions that change the normal flow of execution....
     (incorporating TR 15580).
  • Interoperability with the C programming language
    C (programming language)

    C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
    .
  • Support for international usage: access to ISO 10646 4-byte characters and choice of decimal or comma in numeric formatted input/output.
  • Enhanced integration with the host operating system: access to command line arguments, environment variable
    Environment variable

    Environment variables are a set of dynamic named Value s that can affect the way running computer process will behave on a computer....
    s, and processor error messages.


An important supplement to Fortran 2003 was the ISO technical report TR-19767: Enhanced module facilities in Fortran. This report provided submodules, which make Fortran modules more similar to Modula-2
Modula-2

Modula-2 is a computer programming language invented by Niklaus Wirth at ETH, around 1978, as a successor to his intermediate language Modula. Modula-2 was implemented in 1980 for the Lilith computer, which was commercialized in 1982 by startup company DISER as MC1 and MC2....
 modules. They are similar to Ada
Ada (programming language)

Ada is a structured programming, statically typed, Imperative programming, and Object-oriented programming high-level language computer programming programming language, extended from Pascal and other languages....
 private child subunits. This allows the specification and implementation of a module to be expressed in separate program units, which improves packaging of large libraries, allows preservation of trade secrets while publishing definitive interfaces, and prevents compilation cascades.

Fortran 2008

Efforts are underway to develop a revision to Fortran 2003, tentatively called Fortran 2008. As with Fortran 95, this is intended to be a minor upgrade, incorporating clarifications and corrections to Fortran 2003, as well as introducing a select few new capabilities. As of February 2007, the proposed new capabilities included
  • Co-array Fortran
    Co-array Fortran

    Co-array Fortran, formerly known as F--, is an extension of Fortran 95/2003 for parallel processing created by Robert Numrich and John Reid ....
     – a parallel processing model
  • BIT
    Bit

    A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
     data type


In August 2007, the BIT data type was removed. In February 2008, Coarrays were scaled back: Parallel I/O and teams were removed.

The complete original work plan is available at http://j3-fortran.org/doc/year/07/07-010.html.

The legacy of FORTRAN

Since Fortran has been in use for more than fifty years, there is a vast body of Fortran in daily use throughout the scientific and engineering communities. It is the primary language for some of the most intensive supercomputing tasks, such as weather
Numerical weather prediction

Numerical weather prediction uses current weather conditions as input into mathematical models of the atmosphere to weather forecasting. While the first efforts to accomplish this were done in the 1920's, it wasn't until the advent of the computer that it was feasible to do in real-time....
 and climate modeling, computational fluid dynamics
Computational fluid dynamics

Computational fluid dynamics is one of the branches of fluid mechanics that uses numerical methods and algorithms to solve and analyze problems that involve fluid flows....
, computational chemistry
Computational chemistry

Computational chemistry is a branch of chemistry that uses computers to assist in solving chemical problems. It uses the results of theoretical chemistry, incorporated into efficient computer programs, to calculate the structures and properties of molecules and solids....
, computational economics, and computational physics
Computational physics

Computational physics is the study and implementation of numerical algorithms in order to solve problems in physics for which a quantitative theory already exists....
. Even today, half a century later, many of the floating-point benchmarks to gauge the performance of new computer processors are still written in Fortran (e.g., , the floating-point component of the SPEC
Spec

Dablink|Due to...
  benchmarks).

Language features

The Fortran language features described are intended to be a fairly comprehensive overview of the Fortran language; full details may be found in any of several Fortran textbooks. Only those features widely used in new programs are described, as few of the historic features are used in modern programs. Still, most have been retained in the language to maintain backward compatibility
Backward compatibility

In technology, for example in telecommunications and computing, a device or technology is said to be backwards compatible if it allows input generated by older devices....
.

Portability

Portability was a problem in the early days because there was no agreed standard—not even IBM's reference manual—and computer companies vied to differentiate their offerings from others by providing incompatible features. Standards have improved portability. The 1966 standard provided a reference syntax and semantics, but vendors continued to provide incompatible extensions. Although careful programmers were coming to realize that use of incompatible extensions caused expensive portability problems, and were therefore using programs such as The PFORT Verifier, it was not until after the 1977 standard, when the National Bureau of Standards (now NIST
National Institute of Standards and Technology

The National Institute of Standards and Technology , known between 1901 and 1988 as the National Bureau of Standards , is a measurement standards laboratory which is a non-regulatory agency of the United States Department of Commerce....
) published FIPS PUB 69, that processors purchased by the U.S. Government were required to diagnose extensions of the standard. Rather than offer two processors, essentially every compiler eventually had at least an option to diagnose extensions.

Incompatible extensions were not the only portability problem. For numerical calculations, it is important to take account of the characteristics of the arithmetic. This was addressed by Fox et al. in the context of the 1966 standard by the PORT library. The ideas therein became widely used, and were eventually incorporated into the 1990 standard by way of intrinsic inquiry functions. The widespread (now almost universal) adoption of the IEEE 754 standard for binary floating-point arithmetic has essentially removed this problem.

Access to the computing environment (e.g. the program's command line, environment variables, textual explanation of error conditions) remained a problem until it was addressed by the 2003 standard.

Large collections of "library" software that could be described as being loosely-related to engineering and scientific calculations, such as graphics libraries, have been written in C, and therefore access to them presented a portability problem. This has been addressed by incorporation of C interoperability into the 2003 standard.

It is now possible (and relatively easy) to write an entirely portable program in Fortran, even without recourse to a preprocessor.

Variants of Fortran


Fortran 5

Fortran 5 was a programming language marketed by Data General
Data General

Data General was one of the first minicomputer firms from the late 1960s. Three of the four founders were former employees of Digital Equipment Corporation....
 Corp in the late 1970s and early 80s, for the Nova
Data General Nova

The Data General Nova was a popular 16-bit minicomputer built by the United States company Data General starting in 1969. The Nova was packaged into a single rack mount case and had enough power to do most simple computing tasks....
, Eclipse
Data General Eclipse

The Data General Eclipse line of computer by Data General were 16-bit minicomputer released in early 1974 and sold until 1988. The Eclipse was based on many of the same concepts as the Data General Nova, but included support for virtual memory and multitasking more suitable to the small office than the lab....
, and MV
MV

MV can stand for:...
 line of computers. It had an optimizing compiler that was quite good for minicomputers of its time. The language most closely resembles Fortran 66. The name is a pun
Pun

A pun, or paronomasia, is a form of word play that deliberately exploits ambiguity between similar-sounding words for humour or rhetorical effect....
 on the earlier Fortran IV.

Specific variants

Vendors of high-performance scientific computers (e.g., Burroughs, CDC
Control Data Corporation

Control Data Corporation was one of the pioneering supercomputer firms. For most of the 1960s, it built the fastest computers in the world by far, only losing that crown in the 1970s to what was effectively a spinoff, after Seymour Cray left the company to found Cray Research, Inc....
, Cray, Honeywell
Honeywell

Honeywell is a major United States multinational corporation list of conglomerates company that produces a variety of consumer products, engineering services, and aerospace systems for a wide variety of customers, from private consumers to major corporations and governments....
, IBM
IBM

International Business Machines Corporation, abbreviated IBM and nicknamed "Big Blue" , is a multinational corporation computer technology and consulting corporation headquartered in Armonk, New York, New York, United States....
, Texas Instruments
Texas Instruments

Texas Instruments , better known in the electronics industry as TI, is an United States company based in Dallas, Texas, Texas, United States, renowned for developing and commercializing semiconductor and computer technology....
, and UNIVAC
UNIVAC

UNIVAC is the name of a business unit and division of the Remington Rand company formed by the 1950 purchase of the Eckert-Mauchly Computer Corporation, founded four years earlier by ENIAC inventors J....
) added extensions to Fortran to take advantage of special hardware features such as instruction cache
Cache

In computer science, a cache is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch or to compute, compared to the cost of reading the cache....
, CPU pipelines, and vector arrays. For example, one of IBM's FORTRAN compilers (H Extended IUP) had a level of optimization which reordered the machine language instructions
Instruction (computer science)

In computer science, an instruction is a single operation of a central processing unit defined by an instruction set architecture. In a broader sense, an "instruction" may be any representation of an element of an executable program, such as a bytecode....
 to keep multiple internal arithmetic units busy simultaneously. Another example is CFD, a special variant of Fortran designed specifically for the ILLIAC IV
ILLIAC IV

The ILLIAC IV was one of the most infamous supercomputers ever. Last in a series of research machines, the ILLIAC from the University of Illinois at Urbana-Champaign, the ILLIAC IV design featured fairly high parallel computing with up to 256 processors, used to allow the machine to work on large data sets in what would later be known as vect...
 supercomputer, running at NASA
NASA

The National Aeronautics and Space Administration is an agency of the Federal government of the United States, responsible for the nation's public list of space agencies....
's Ames Research Center
NASA Ames Research Center

NASA Ames Research Center is a NASA facility located at Moffett Federal Airfield, which covers at the borders of the cities of Mountain View, California and Sunnyvale, California in California....
. IBM Research Labs also developed an extended FORTRAN-based language called "VECTRAN" for processing of vectors and matricies.

Object-Oriented Fortran
Object-Oriented Fortran

Object-Oriented Fortran is an object-oriented extension of Fortran, in which data items can be grouped into objects, which can be instantiated and executed in parallel....
 was an object-oriented extension of Fortran, in which data items can be grouped into objects, which can be instantiated and executed in parallel. It was available for Sun, Iris, iPSC, and nCUBE, but is no longer supported.

Such machine-specific extensions have either disappeared over time or have had elements incorporated into the main standards; the major remaining extension is OpenMP
OpenMP

The OpenMP is an application programming interface that supports multi-platform shared memory multiprocessing programming in C , C++ and Fortran on many architectures, including Unix and Microsoft Windows platforms....
, which is a cross-platform extension for shared memory programming. One new extension, CoArray Fortran, is intended to support parallel programming.

FOR TRANSIT for the IBM 650
"FOR TRANSIT" was the name of a reduced version of the IBM 704 FORTRAN language, which was implemented for the IBM 650, using a translator program developed at Carnegie

in the late 1950s. The following comment appears in the IBM Reference Manual ("FOR TRANSIT Automatic Coding System" C28-4038, Copyright 1957, 1959 by IBM):
The FORTRAN system was designed for a more complex machine than the 650, and consequently some of the 32 statements found in the FORTRAN Programmer's Reference Manual are not acceptable to the FOR TRANSIT system. In addition, certain restrictions to the FORTRAN language have been added. However, none of these restrictions make a source program written for FOR TRANSIT incompatible with the FORTRAN system for the 704.


The permissible statements were:
Arithmetic assignment statements, e.g. a = b
GO to n
GO TO (n1, n2, ..., nm), i
IF (a) n1, n2, n3
PAUSE
STOP
DO n i = m1, m2
CONTINUE
END
READ n, list
PUNCH n, list
DIMENSION V, V, V, ...
EQUIVALENCE (a,b,c), (d,c), ...
Up to ten subroutines could be used in one program.

FOR TRANSIT statements were limited to columns 7 thru 56, only. Punched cards were used for input and output on the IBM 650. Three passes were required to translate source code to the "IT" language, then to compile the IT statements into SOAP assembly language, and finally to produce the object program, which could then be loaded into the machine to run the program (using punched cards for data input, and outputting results onto punched cards.)

Two versions existed for the 650s with a 2000 word memory drum: FOR TRANSIT I (S) and FOR TRANSIT II, the latter for machines equipped with indexing registers and automatic floating point decimal (bi-quinary) arithmetic. Appendix A of the manual included wiring diagrams for the IBM 533 control panel.

Fortran-based languages

Prior to FORTRAN 77, a number of preprocessor
Preprocessor

In computer science, a preprocessor is a Computer program that processes its input data to produce output that is used as input to another program....
s were commonly used to provide a friendlier language, with the advantage that the preprocessed code could be compiled on any machine with a standard FORTRAN compiler. Popular preprocessors included FLECS, MORTRAN
Mortran

Mortran is an extension of the Fortran programming language used for scientific computation. It introduces syntax changes, including the use of semicolons to end statements, in order to improve readability and flexibility....
, Ratfor
Ratfor

Ratfor is a programming language implemented as a preprocessor for Fortran 66. It provided modern control structures, unavailable in Fortran 66, to replace GOTOs and statement numbers....
, and Ratfiv
Ratfiv

Ratfiv is an enhanced version of the Ratfor programming language, a preprocessor for Fortran designed to give it C -like capabilities. Fortran was widely used for scientific programming but had very basic Control flow primitives and no "macro" facility which limited its expressiveness....
. (Ratfor and Ratfiv, for example, implemented a remarkably C
C (programming language)

C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
-like language, outputting preprocessed code in standard FORTRAN 66.)

The Fortran-95 Standard includes an optional Part 3 which defines an optional conditional compilation capability. This capability is often referred to as "CoCo".

Many Fortran compilers have integrated subsets of the C preprocessor
C preprocessor

The C preprocessor is the preprocessor for the C . In many C implementations, it is a separate computer program invoked by the compiler as the first part of translation....
 into their systems.

SIMSCRIPT
SIMSCRIPT

SIMSCRIPT is a free-form, English language-like general-purpose simulation language conceived by Harry Markowitz and Bernard Hausner at the RAND in 1963....
 is an application specific Fortran preprocessor for modeling and simulating large discrete systems.

F (programming language)
F programming language

F is a compiled language, structured programming, array programming languages especially well suited to education and scientific computing. It is a subset of Fortran 95 developed by Walter Brainerd, Richard Hendrickson, and David Epstein....
 was designed to be a clean subset of Fortran 95 that attempted to remove the redundant, unstructured, and deprecated features of Fortran, such as the EQUIVALENCE statement. F retains the array features added in Fortran 90, and removes control statements that were obsoleted by structured programming constructs added both Fortran 77 and Fortran 90. F is described by its creators as "a compiled, structured, array programming language especially well suited to education and scientific computing."

Code examples

The sample programs can be compiled and run with any standard Fortran compiler (see the end of this article for lists of compilers). Most modern Fortran compilers expect a file with a .f or .for extension (for FORTRAN 66 or FORTRAN 77 fixed-form source, although the FORTRAN 66 dialect may have to be selected specifically with a command-line option) or .f90/.f95 extension (for Fortran 90/95 free-form source, respectively).

FORTRAN quotations

For a programming language with a half-century legacy, FORTRAN not surprisingly has accumulated its share of jokes and folklore.

Letter O considered harmful

During the same Fortran Standards Committee meeting at which the name "FORTRAN 77" was chosen, a technical proposal was somehow smuggled into the official distribution, bearing the title, "Letter O considered harmful
Considered harmful

In computer science and related disciplines, considered harmful is a phrase popularly used in the titles of diatribes and other critical essays ....
". This deceptively simple proposal purported to address the confusion that sometimes arises between the letter "O" and the numeral zero, by eliminating the letter from allowable variable names. However, the method proposed was to eliminate the letter from the character set entirely (thereby retaining 48 as the number of lexical characters, which the colon had increased to 49).

Among the "PRO" arguments was the assertion that this would also promote structured programming, by making it impossible to use the notorious GO TO statement as before. (Troublesome FORMAT statements would be eliminated, as well.)

The sole "CON" argument conceded that "this might invalidate some existing programs" but noted that most of these "probably were non-conforming, anyway".

See also

  • Alphabetical list of programming languages
    Alphabetical list of programming languages

    The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in alphabetical order....
  • History of compiler writing
    History of compiler writing

    In computing, a compiler is a computer program that transforms source code written in a programming language into another computer language . The most common reason for wanting to transform source code is to create an executable program....


Textbooks


"Core" language standards

Informally known as FORTRAN 66. Also known as ISO 1539-1980, informally known as FORTRAN 77. Informally known as Fortran 90. Informally known as Fortran 95. There are a further two parts to this standard. Part 1 has been formally adopted by ANSI. Informally known as Fortran 2003.

Related standards



  • ISO 8651-1:1988 Information processing systems -- Computer graphics -- Graphical Kernel System (GKS) language bindings -- Part 1: FORTRAN


Further reading

  • Roberts, Mark L.; Griffiths, Peter D., , IBM Systems Journal 24(1): 49-60 (1985)


External links

History
  • (1.39 MB) — 1957 copy describes the design and implementation of the first FORTRAN compiler by the IBM team
  • and (6.11 MB) dated [1956-10-15]
  • and (13.5 MB)
  • from 1959 (3.82 MB)
  • (1.45 MB) — by F.E. Allen, IBM Journal of Research and Development, v.25, no.5, September 1981
  • Bemer, Bob
    Bob Bemer

    Robert William Bemer was a computer scientist best known for his work at IBM during the late 1950s and early 1960s....
    , , January 1957, Computer History Vignettes


Standards
  • by GFortran
  • — The ISO/IEC Fortran Working Group
  • Fortran 77 Standard
    • DoD Extensions to Fortran 77
  • Fortran 90 Standard
  • Fortran 95 Standard
  • Final Committee Draft of Fortran 2003 standard
Tutorials
  • (493 KB) — Guide written by Clive G. Page of the University of Leicester
  • and — Part of ASPIRE's "Computational Science Textbook" project
  • — An open cooperative guide
  • - Using the Common Gateway Interface (CGI) to send data from an html form to a Fortran executable


References
  • — FORTRAN 77 documentation
  • (851 KB)


Code repositories
  • — Numerical Algorithms Group
  • — Computational Research Division of Lawrence Berkeley National Laboratory
  • (defunct) Department of Computer Science at the University of Tennessee at Knoxville
  • at the University of Tennessee at Knoxville and Oak Ridge National Laboratory
  • Logistic Regression, TOMS algorithms, Special code for F, Applied Statistics Algorithms and NAS compilers


Open source compilers
  • — The GNU Fortran compiler, part of GCC. Distributed as part of GCC
    GNU Compiler Collection

    The GNU Compiler Collection is a compiler system produced by the GNU Project supporting various programming languages. GCC is a key component of the GNU toolchain....
     as of GCC 4.0. Replaced g77.
  • — Free, open source Fortran 95 compiler and runtime libraries
  • — Open Research Compiler. Suite of optimizing compiler development tools for Intel Itanium (Linux)
  • — A joint effort between SciTech Software Inc, Sybase and the Open Source development community to maintain Fortran cross compilers and tools


Non-open source compilers
  • Intel Fortran Compiler
    Intel Fortran Compiler

    Intel Fortran Compiler - Fortran compiler developed by Intel. It generates code for IA-32, Intel 64, Itanium 2 processors. Supporting operating systems: Linux, Microsoft Windows and Mac OS X....
  • Fortran 95/90/77 and C/C++ compilers for Windows, Mac OS 9 and OS X, Linux IA32 and AMD Opteron and AMD Athlon 64-bit processors
  • Fortran 95 compilers for AIX, Blue Gene, and Linux
  • — Fortran 95 compilers for Linux and Windows
  • Fortran 95 compiler with 2003 features for Linux, Windows, and Unix on many platforms
  • — Fortran 95, C, and C++ compilers for Linux on MIPS, AMD Opteron and Intel 64-bit and 32-bit x86 CPUs
  • Fortran 95, C and C++ Compilers for 32-bit and 64-bit AMD64 and IA32 processor-based Linux and Windows systems
  • — Personal edition (Windows)
  • Sun Studio Compiler Suite — From Sun Microsystems
    Sun Microsystems

    Sun Microsystems, Inc. is a multinational corporation vendor of computers, computer components, computer software, and information technology services, founded on February 24, 1982....
    ; compiles optimized and parallelized code for the Solaris OS on SPARC
    SPARC

    SPARC is a Reduced Instruction Set Computer microprocessor instruction set Computer architecture originally designed in 1985 by Sun Microsystems....
     and x86/x86-64
    X86-64

    x86-64 is a superset of the x86. x86-64 Central processing units can run existing 32-bit or 16-bit x86 programs at full speed, but also support new programs written with a 64-bit address space and other additional capabilities....
     platforms, and Linux
    Linux

    Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
     on x86/x86-64
    X86-64

    x86-64 is a superset of the x86. x86-64 Central processing units can run existing 32-bit or 16-bit x86 programs at full speed, but also support new programs written with a 64-bit address space and other additional capabilities....
     platforms


Integrated Development Environment
  • — An IDE for Fortran 77, 90, and 95 based on Eclipse and the CDT.


Graphical libraries/GUI
  • — A high-level plotting library for displaying data as curves, polar plots, bar graphs, pie charts, 3D-color plots, surfaces, contours and maps
  • — Public domain implementation of the official Fortran 90 bindings for OpenGL (Linux, Mac OS X, Solaris, UNIX, Windows)
  • — A Fortran–Tcl/TK interface
  • — Portable and 2D graphics library (Linux, Mac OS X, OpenVMS, Solaris, UNIX, Windows)GNU LGPL
  • — Free graphics routine library for Fortran (Windows)
  • — Platform Independent Library for Fortran 90/95 (Linux, Mac OS X, UNIX, Windows) GNU LGPL
  • — A Scientific Plotting Library (Linux, Mac OS X, MS-DOS, Unix, Windows) GNU LGPL
  • — A Scientific Graphical Numerical Library (Linux, Mac OS X, MS-DOS, SuSe, Windows)


Testing Frameworks
  • FUnit
    FUnit

    fUnit is a Unit_Test framework for Fortran_programming_language, in the flavor of other xUnit testing frameworks.External links*.*....
     — a unit testing framework.


Miscellaneous
  • on Usenet
  • — Open Directory category
  • (41.2 KB)