Jump to content

FORTRAN: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
Line 85: Line 85:
* [news:comp.lang.fortran comp.lang.fortran] - Surprisingly popular - Go to the [https://groups.google.com/forum/#!forum/comp.lang.fortran Google groups version] if you are newsgroup challenged.
* [news:comp.lang.fortran comp.lang.fortran] - Surprisingly popular - Go to the [https://groups.google.com/forum/#!forum/comp.lang.fortran Google groups version] if you are newsgroup challenged.
==Standards==
==Standards==
====FORTRAN to FORTRAN IV====
;FORTRAN to FORTRAN IV
* John Backus, et al: [http://www.fh-jena.de/~kleine/history/languages/FortranAutomaticCodingSystemForTheIBM704.pdf FORTRAN Automated Coding System For the IBM 704 EDPM] - 1956
* John Backus, et al: [http://www.fh-jena.de/~kleine/history/languages/FortranAutomaticCodingSystemForTheIBM704.pdf FORTRAN Automated Coding System For the IBM 704 EDPM] - 1956
* [http://www.fh-jena.de/~kleine/history/languages/F28-8074-3_FORTRANII_GenInf.pdf FORTRAN II General Information Manual] and [http://www.fh-jena.de/~kleine/history/languages/C28-6054-4_7090_FORTRANII.pdf IBM 7090/7094 Programming Systems: FORTRAN II Programming] are the two documents that defined the FORTRAN II standard - 1963
* [http://www.fh-jena.de/~kleine/history/languages/F28-8074-3_FORTRANII_GenInf.pdf FORTRAN II General Information Manual] and [http://www.fh-jena.de/~kleine/history/languages/C28-6054-4_7090_FORTRANII.pdf IBM 7090/7094 Programming Systems: FORTRAN II Programming] are the two documents that defined the FORTRAN II standard - 1963
* [http://www.fh-jena.de/~kleine/history/languages/C28-6274-1_7090_FORTRANIV.pdf IBM 7090/7094 Programming Systems: FORTRAN IV Language] - 1963 and [http://www.fh-jena.de/~kleine/history/languages/GC28-6515-10-FORTRAN-IV-Language.pdf IBM System 360 and System 370 FORTRAN IV Language] - 1974 are the two main documents relating to FORTRAN IV, although the ANSI66 standard had been released FORTRAN IV remained the de facto standard until well after ANSI77 was released.
* [http://www.fh-jena.de/~kleine/history/languages/C28-6274-1_7090_FORTRANIV.pdf IBM 7090/7094 Programming Systems: FORTRAN IV Language] - 1963 and [http://www.fh-jena.de/~kleine/history/languages/GC28-6515-10-FORTRAN-IV-Language.pdf IBM System 360 and System 370 FORTRAN IV Language] - 1974 are the two main documents relating to FORTRAN IV, although the ANSI66 standard had been released FORTRAN IV remained the de facto standard until well after ANSI77 was released.


====FORTRAN66 & FORTRAN77====
;FORTRAN66
* [http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf ANSI FORTRAN66 Standard] - 1967 - Basically a rubber stamping of FORTRAN IV with some clarifications.
* [http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf ANSI FORTRAN66 Standard] - 1967 - Basically a rubber stamping of FORTRAN IV with some clarifications.
;FORTRAN77
* [http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1978-Fortran77.pdf ANSI FORTRAN77 Standard] - 1978
* [http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1978-Fortran77.pdf ANSI FORTRAN77 Standard] - 1978
* [ftp://ftp.nag.co.uk/sc22wg5/ARCHIVE/mil_std_1753.html MILITARY STANDARD 1753] - USA Department of Defence supplement To FORTRAN77 - 1978 - Not supported by many compilers.
* [ftp://ftp.nag.co.uk/sc22wg5/ARCHIVE/mil_std_1753.html MILITARY STANDARD 1753] - USA Department of Defence supplement To FORTRAN77 - 1978 - Not supported by many compilers.
* [http://www.itl.nist.gov/div897/ctg/fortran_form.htm FIPS test suite for FORTRAN78] - Free validation suite
* [http://www.itl.nist.gov/div897/ctg/fortran_form.htm FIPS test suite for FORTRAN78] - Free validation suite


====Fortran 90====
;Fortran 90
* [http://www.iso.org/iso/catalogue_detail?csnumber=50459 Fortran90] - 1991 - There are no draft versions avaialable for download.
* [http://www.iso.org/iso/catalogue_detail?csnumber=50459 Fortran90] - 1991 - There are no draft versions available for download.
* There were three sets of corrections, clarifications and minor additions to the Fortran90 standard published in [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_1.pdf TECHNICAL CORRIGENDUM 1], [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_2.pdf TECHNICAL CORRIGENDUM 2] and [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_3.pdf TECHNICAL CORRIGENDUM 3].
* There were three sets of corrections, clarifications and minor additions to the Fortran90 standard published in [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_1.pdf TECHNICAL CORRIGENDUM 1], [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_2.pdf TECHNICAL CORRIGENDUM 2] and [http://www.j3-fortran.org/doc/standing/archive/006/f90/Corrigendum_3.pdf TECHNICAL CORRIGENDUM 3].
* ISO also published [http://www.nag.co.uk/sc22wg5/Guidelines_for_Bindings-a.html Guidelines for Bindings to Fortran 90]
* ISO also published [http://www.nag.co.uk/sc22wg5/Guidelines_for_Bindings-a.html Guidelines for Bindings to Fortran 90]
* The UK MET Office published the [http://research.metoffice.gov.uk/research/nwp/numerical/fortran90/f90_standards.html European Standards For Writing and Documenting Exchangeable Fortran 90 Code]. (MET = Meteorological BTW)
* The UK MET Office published the [http://research.metoffice.gov.uk/research/nwp/numerical/fortran90/f90_standards.html European Standards For Writing and Documenting Exchangeable Fortran 90 Code]. (MET = Meteorological BTW)


====Fortran95====
;Fortran95
* [http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf Fortran95] - 1997 Draft standard
* [http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf Fortran95] - 1997 Draft standard
* There were two sets of corrections, clarifications and minor additions to the Fortran95 standard published in [http://www.j3-fortran.org/doc/standing/archive/006/f95/Corrigendum_1.pdf TECHNICAL CORRIGENDUM 1] and [http://www.j3-fortran.org/doc/standing/archive/006/f95/Corrigendum_2.pdf TECHNICAL CORRIGENDUM 2].
* There were two sets of corrections, clarifications and minor additions to the Fortran95 standard published in [http://www.j3-fortran.org/doc/standing/archive/006/f95/Corrigendum_1.pdf TECHNICAL CORRIGENDUM 1] and [http://www.j3-fortran.org/doc/standing/archive/006/f95/Corrigendum_2.pdf TECHNICAL CORRIGENDUM 2].


====Fortran20xx====
;Fortran 2003
* [ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1601.pdf.gz Draft Fortran2003 standard] - See also [http://www.futa.edu.ng/materials/FORTRANTEXT.pdf Fortran2003 handbook]
* [ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1601.pdf.gz Draft Fortran2003 standard] - See also [http://www.futa.edu.ng/materials/FORTRANTEXT.pdf Fortran2003 handbook]
;Fortran 2008
* [ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf Draft Fortran2008] - Minor revision of 2003
* [ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf Draft Fortran2008] - Minor revision of 2003
* [http://www.j3-fortran.org/doc/standing/links/010.pdf Workplan for Fortran2015]
* [http://www.j3-fortran.org/doc/standing/links/010.pdf Workplan for Fortran2015]


====Fortran MP====
;Fortran MP
Extensions to FORTRAN77, 90 and 95 to support programming multi-processor machines, the v4 also supports Fortran2003
Extensions to FORTRAN77, 90 and 95 to support programming multi-processor machines, the v4 also supports Fortran2003
* [http://www.openmp.org/mp-documents/fspec10.pdf OpenMP Fortran Application Program Interface - Version 1.0] - 1997
* [http://www.openmp.org/mp-documents/fspec10.pdf OpenMP Fortran Application Program Interface - Version 1.0] - 1997

Revision as of 23:37, 27 October 2017

Early and highly influential programming language designed by IBM in the 1950's, by now primarily used in numerical and scientific computing but on top of the usual inertia and the wide availability of libraries, FORTRAN can produce numerical code that is significantly faster that what you can expect from languages like C and Pascal and I/O speed, especially registered I/O is in a whole different league to CPL class languages like C and C++. While Fortran was a major influence on the European Algol languages in the late 1950's, things have essentially turned around 180 degrees with all FORTRAN standards since the early 70's being heavily influenced by structured Algol derivatives like Pascal and Modula-2.

Classic FORTRAN is always spelled all caps, Fortran 90 and later however are expected to be formatted as other nouns. We tend to use the older conventions here since only a couple of F90 OS/2 implementations showed up and they did not sell well so the bulk of OS/2 programming has traditionally been done in classic FORTRAN.

OS/2 implementations

FORTRAN libraries

  • Panel Plus II - Screen painter and UI library - Commercial - Current

FORTRAN related programmer's utilities

  • Exuberant ctags - Creates index files out of FORTRAN source files - Open source - Current
  • Panel Plus II - Screen painter and UI library - Commercial - Current

Editors with FORTRAN support

  • Boxer - FORTRAN syntax support included by default - Commercial - Discontinued
  • BRIEF - FORTRAN syntax support included by default - Commercial - Discontinued
  • Elvis - FORTRAN syntax support included by default - Open source - Current
  • Enhanced Editor - Has FORTRAN 90 syntax highlighting built in with some auto-formatting features
  • FTE - Has support for syntax highlighting, code folding and syntax-aware autoindent. - Open source - Current
  • jEdit - Java based - FORTRAN 77 & Fortran 90 syntax highlighting built in - Current
  • Lugaru Epsilon - Fortran 90 syntax highlighting and autoindent available as a seperate download. - Commercial
  • MED
  • NEdit - XFree86 - Autoindent, autocomplete and syntax highlighting
  • Visual SlickEdit

Fortran source code snippets, archives and collections

Small programs or routines that you can integrate into your own programs or study to learn from, but are not delivered in library form.

DOS Implementations

DOS Database bindings

  • Empress - Commercial - Discontinued

DOS Editors with FORTRAN support

  • Boxer - FORTRAN syntax support included by default - Commercial - Discontinued
  • BRIEF - FORTRAN syntax support included by default - Commercial - Discontinued
  • Elvis - FORTRAN syntax support included by default - Open source - Current
  • FTE - Has support for syntax highlighting, code folding and syntax-aware autoindent. - Open source

A list of FORTRAN implementations that run under WinOS/2

  • Microsoft FORTRAN77 - Commercial - Discontinued
  • Prospero FORTRAN 77 - Commercial - Discontinued - 16 bit development possible by cross-compiling from DOS or OS/2 with an optional library/linker package.

A list of FORTRAN implementations that run under Java

  • F2J Open source - Current

Publications

  • T. Ellis, et al: FORTRAN 77 Programming: with an Introduction to the FORTRAN 90 Standard - 1990 - ISBN: 0201416387 - Out of print.

External articles

Tutorials and other learning material

Links

USENET

Standards

FORTRAN to FORTRAN IV
FORTRAN66
FORTRAN77
Fortran 90
Fortran95
Fortran 2003
Fortran 2008
Fortran MP

Extensions to FORTRAN77, 90 and 95 to support programming multi-processor machines, the v4 also supports Fortran2003

Standards bodies

  • Fortran Standards Committee homepage - The home of FORTRAN standardisation since 1966, although usually credited to ANSI the standard is actually developed by "National Committee for Information Technology Standards" (NCITS) nowadays known as "InterNational Committee for Information Technology Standards " (INCITS), despite having no presence outside the USA.
  • OpenMP - Standards body for the Fortran MP variants.

FORTRAN History

  • Developed primarily by John Backus then working from the IBM headquarters on Madison Avenue in New York City, USA and formally introduced as an optional software for the IBM 704 computer in April 1957 even though IBM had shipped versions in 1956. The basic idea behind FORTRAN was for it to resemble common algebra notation as much as possible.