From Wikibooks, open books for an open world
Jump to navigation Jump to search

← Overview | FAQ →

Fortran was created by a team lead by John Backus at IBM in 1957. Originally, the name was written in all capital letters, but current standards and implementations only require the first letter to be capital. The name Fortran stands for FORmula TRANslator. Initially it was specifically aimed at scientific calculations and thereby had very limited support for working with character strings and lacked other provisions important for a general purpose programming language, which it will attain later during its extensive (and still ongoing as of 2013) development that ensued after its successful debut. Until the C language became popular, Fortran had been one of the few high level languages with a reasonable degree of portability between different computer systems. Several websites indicate that the work on Fortran was started in 1954 and released commercially in 1957. It is believed that the first successful compilation of a small Fortran program took place on September 20, 1954.

There have been several versions of Fortran. Fortran I, II and III are considered obsolete. The oldest Fortran versions which are considered of much use today were Fortran IV, and Fortran 66, which, as the name implies, was released in 1966. All later versions of Fortran are numbered after the year the standard was released. The versions of Fortran most commonly remaining in use are Fortran 77, Fortran 90, and Fortran 95.

In Fortran II, IF statements had the form: IF (numericExpression) lineNumberIfNegative, lineNumberIfZero, lineNumberIfPositive. It also had an odd type of string literal, called Hollerith literals (after the inventor of the keypunch and IBM). Where today one might code 'hello', Fortran II used 5Hhello. However, there was no string variable type.

Fortran IV added the IF/THEN concept, the concept of logical expressions, with operators .AND., .OR., .EQ., .NE., etcetera. Complex numbers as a basic type were also added.

Fortran 77 added strings as a distinct type.

Fortran 90 added various sorts of threading, and direct array processing.

Although Fortran became a standardized language early, many companies had their own extensions to it. Strangely, IBM and DEC had virtually the same set of extensions.