Compiler switches for developing Fortran programs

There was a thread on one of the news lists about debugging Fortran programs and the major source of information on the web is the Polyhedron site where they look at the diagnostic capability of a range of compilers under Windows and Linux. The following has been put together from some guidelines that we have developed from teaching Fortran within the University of London (Imperial College, Chelsea College, Queen Elizabeth College and King's College, from 1978 to the present) and the information at the Polyhedron site.