GCC (GNU compiler collection) の gcc (GNU C compiler) を使うという手もある。 GCC には Fortran も含まれている。 現象数理学科 Mac では、MacPorts でインストーするのが簡単であろう。 今 (2021/4/3) だと gcc10 が最新版である。
sudo port install gcc10 sudo port select --set gcc mp-gcc10 which gcc/opt/local/bin/gcc と表示されるはず。 |