|
From: | Rik |
Subject: | Re: Fortran optimization flags |
Date: | Wed, 03 Jun 2015 10:44:25 -0700 |
On 05/08/2015 09:00 AM,
address@hidden wrote:
I think originally there may have been. For some platforms there wasn't actually a Fortran compiler, rather there was only a Fortran-to-C translator and then the C code was compiled. In that case it was easier for the C compiler to perform optimization if the input code was relatively straightforward and had not already been optimized. But, I would say that this situation has now passed. Most distributions, including our MXE distribution for Windows, use gfortran and it accepts -O2. I know that I, personally, have been using -O2 in FFLAGS for several years and never had a problem. I think if jwe is okay with it then we should change the default optimization flags on the development branch.
Someone else will need to speak to this. I think that during install the binaries may be stripped anyways so that the '-g' isn't really useful. I know that personally I have a debugging source tree where I compile with '-g' and an ordinary tree where I don't use the '-g' flag. I always install versions from the tree without '-g'. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |