You can invoke the Fortran 95 compiler by simply typing gfortran, as following example: $ gunzip (if your browser didn't do so already) , (gfortran only), updated July 2012 (Lion & M. , (gfortran only), updated Oct 2013 (M. , (gfortran only), updated Oct 2013 (10.9 Mavericks only).
On 10.9 Mavericks, you can get the command-line tools by simply typing You will find the option to download the command-line tools in XCode's Preferences (click on Downloads tab). LION, with XCode 4 or 5 you will need to download the command-line tools as an additional step. ġ) Install Xcode: You will need to have Apple's XCode Tools installed from the Mac App Store. modify code to take advantage of AltiVec/SSE, automatically) and other sophisticated optimizations like OpenMP. This contains current versions (4.7 is the stable release) of gfortran (free, open source, GNU Fortran 95 compiler), gcc (GNU C) and g++ (GNU C++) compilers that can perform auto-vectorization (i.e. ConfigArgParse: optional, enables use of config fileĬompare examples/*before.f90 (original Fortran files) with examples/*after.f90 (reformatted Fortran files) to see what fprettify does.GCC 4.7, 4.8, 4.9 (auto-vectorizing gcc with OpenMP):Ĭompiled using source code from the GNU servers.Python 3 (Python 2.7 no longer supported).Feature missing? Please create an issue.Works only for modern Fortran (Fortran 90 upwards).fprettify can handle cpp and fypp preprocessor directives.By default, fprettify causes whitespace changes only and thus preserves revision history.