What Fortran compilers are there?

15,852

Solution 1

Intel Fortran Compiler - works on Linux, Windows and Mac. It costs money but the Linux version can be used for personal use for free. It produces the fastest code of any Fortran compiler in many circumstances and supports all versions of Fortran including much of the 2003 standard.

A great comparison between various Fortran Compilers has been done by Polyhedron software:

http://www.polyhedron.com/compare0html

Solution 2

Fortran compilers which I have worked with and have found useful (ordered in terms of recommended usage):

  1. Intel Visual FORTRAN ($) Windows, Linux, MAC
  2. G95 (FREE) Windows (cygwin), Linux
  3. NAG Fortran Compiler ($) Windows, Linux, MAC
  4. Lahey Fortran ($) Windows, Linux

If you don't want to spend any money...use G95. At work we support IVF and G95.

Solution 3

OpenWatcom costs nothing and compiles F77 on Win32, Win16, OS/2 and DOS.

(Just to give you a non mainstream option as well)

Solution 4

The Portland Group Fortran compiler cost money and is available for Windows, Mac and Linux. I have personaly used it on Linux while writing several programs that used MPI to do parallel computing and never had any issues with it.

Solution 5

There's also Lahey Fortran. They support 32- and 64-bit Windows and Linux. It costs money, but sometimes it's cheaper to buy a commercial product that has support than to spend 3 weeks to try to figure out some bug in the deep dark depths of an open source compiler. We've had more than a couple problems with g77 and gfortran, especially with optimization of low level memory operations, which are torture to debug. Not that I don't support open source, but for some things, commercial products are a more cost effective solution.

Share:
15,852

Related videos on Youtube

KTC
Author by

KTC

Updated on April 15, 2022

Comments

  • KTC
    KTC about 2 years

    What Fortran compilers are there in this day and age, and which would you recommend? Please list the version of Fortran it supports, the platform it works on (e.g. *nix / Windows), and whether it cost money.

    (Standard OS one per answer etc.)

  • Nils Pipenbrinck
    Nils Pipenbrinck over 15 years
    Uh - My experience goes back to the time where it was still commercial. Back then the IDE was horrible. The Debugger however was and still is the best I've ever worked with.
  • Geoffrey
    Geoffrey over 14 years
    +1 I have just started to use the Silverfrost Fortran compiler with the Plato IDE and I am enjoying it so far. At first, I wanted to use G95 with Notepad++, but the G95 setup file blue-screens Windows 7 RC1.
  • Demi
    Demi about 10 years
    Please edit your answer so that I can remove my dumb downvote.
  • haraldkl
    haraldkl about 10 years
    @Demetri Not quite sure what kind of edit you had in mind, hope the answer is better suited now...
  • Demi
    Demi about 10 years
    @haraldl any edit at all would have worked -- StackOverflow would not let me remove the downvote unless the question was edited.