MATLAB Answers

Why is Fortran compiler support on Mac OS so limited by Mathworks?

7 views (last 30 days)
Robert
Robert on 15 Mar 2018
Commented: jg614 on 17 Jul 2019
Why is Mathworks making life so difficult or expensive for us? Why do we need to jump through hoops, hacking xml scripts to get mex gfortran to work on a Mac? Why is only a commercial Fortran license supported on the Mac platform?

Answers (1)

Andreas Goser
Andreas Goser on 19 Mar 2018
I am not sure what are you referring to. If I visit the supported compiler page, click on the Mac tab, I see Xcode 8.x and 9.x being supported and free of charge.

  5 Comments

Show 2 older comments
jg614
jg614 on 27 Jun 2019
I realize this is an old thread, but for what it's worth, as long as the absolute cheapest non-academic option for a Fortran compiler for Mac and Windows is $840 a year, the use of Fortran for MEX files is likely to remain low compared to C and C++ which have free compilers.
Robert
Robert on 27 Jun 2019
Except that you can get free fortran compilers for Mac as well -- http://hpc.sourceforge.net
jg614
jg614 on 17 Jul 2019
I realize that, I should have specified the "cheapest non-academic option allowed by MathWorks," but I didn't want to add so many qualifiers that it would become unreadable. My point was that MathWorks is arbitrarily forcing users to use expensive products for Fortran compilation on Windows and Mac platforms when gfortran will work just fine on both, free of charge.
Interestingly, I notice that Mac support for gfortran was dropped the same year they added the Intel Fortran compiler: https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2015a_SupportedCompilers.pdf

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by