I am relearning Fortran, including the features which have been added since I last used it some twenty years ago.
Here is a method for compling a sample Fortran program NAME.F. This method checks for memory leaks.
gfortran -fbounds-check -o NAME NAME.F
Tom’s Fortran programs & related posts: FORTRAN
– Tom Irvine