Apologies if the following is off-topic for this list (feel free to
redirect) or unduly lacking in expertise (my background is mostly
java/perl/python):
I'm recompiling legacy atmospheric-modeling code with gcc/gfortran
that has previously been done (and is almost entirely documented)
using icc/ifc (except for the *really* out-of-date docs, which use
PGI). I've been told to try to rebuild the entire chain with
consistent flags, which makes sense, so I'm doing a lot of Makefile-
reading. I'm noticing: the build's fortran flags typically use -O3,
while its C flags typically use -O2, e.g.
MFLAGS = -m64
COPTFLAGS = -O2 ${MFLAGS} -ffast-math -funroll-loops -Wall
FOPTFLAGS = -O3 ${MFLAGS}
Is this generally sensible for gcc/gfortran? Or is this usage something
that might be application-specific? Or this usage just inappropriate?
TIA, Tom Roche<Tom_Roche@pobox.com>