PDA

View Full Version : Fortran compiler Intel mac




mjbooij
Sep 27, 2006, 07:40 AM
I am looking for a (freeware) fortran compiler for an intel mac. Does it exist, and where can I get it?



demallien
Sep 27, 2006, 07:56 AM
Gcc is already on your Mac, and it can handle Fortran....

iMeowbot
Sep 27, 2006, 08:00 AM
http://hpc.sourceforge.net/

You will also need to install the Apple developer tools, if you haven't done so already.

Gcc is already on your Mac, and it can handle Fortran....
One of the deep dark mysteries of OS X is why they leave out the Fortran.

BornAgainMac
Sep 27, 2006, 09:19 AM
Do a "man gcc" at the UNIX prompt for information on how to compile Fortran programs.

iMeowbot
Sep 27, 2006, 09:22 AM
Do a "man gcc" at the UNIX prompt for information on how to compile Fortran programs.

Hence this thread :)
Note that Apple's GCC includes a number of extensions to standard GCC (flagged below with ``APPLE ONLY''), and that not all generic GCC options are available or supported on Darwin / Mac OS X. In particular, Apple does not currently support the compilation of Fortran, Ada, or Java, although there are third parties who have made these work.

Eraserhead
Sep 27, 2006, 09:54 AM
On an Intel Mac, you can use the Intel compilers (http://www3.intel.com/cd/software/products/asmo-na/eng/compilers/fmac/267426.htm) which provide unlimited evaluation.

Or you can use g95 (http://ftp.g95.org/), it can compile Fortran-95 code and works fine on my iMac G5 (there is also an x86 Mac version) though I'm not sure if it can also compile Fortran-77 as well, though I think it probably can.