Apple will develop a Fortran compiler for the new Apple Silicon platform?
Accepted Reply
Your best bet is probably flang which is part of the LLVM project. Not really production ready yet, but should be usable when the arm64 Macs are released.
Replies
No.
As many people (scientists ... as myself), please use gfortran. Compile the GNU CC (gcc) suite, it works well. Currently, I use GCC v. 10.1.0. g95 very likely needs an exeternal free compiler in its binary form (the G95 project for example) with Apple M1, be aware but it should work pretty well.
Sincerely,
lLurent
As many people (scientists ... as myself), please use gfortran. Compile the GNU CC (gcc) suite, it works well. Currently, I use GCC v. 10.1.0. g95 very likely needs an exeternal free compiler in its binary form (the G95 project for example) with Apple M1, be aware but it should work pretty well.
Sincerely,
lLurent
After enabling flang in homebrew llvm you have on intel:
flang-new --version
Homebrew flang-new version 15.0.5
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /usr/local/Cellar/llvm/15.0.5/bin
Please test this on M1/M2
-
New hardware arrived and I verified it on a m2 chip. Flang can compile and link fortran programs on its own. The fortran executable is running fine: flang-new --version
Homebrew flang-new version 16.0.6 Target: arm64-apple-darwin22.5.0 Thread model: posix InstalledDir: /opt/homebrew/Cellar/llvm/16.0.6/bin
I am a computational physicist and neuroscientist and I need Intel Fortran to do my work. Without this, I have to switch to Linux.