[Patch, fortran] PR24518 and PR24520 - Improvements to MOD and DOT_PRODUCT
François-Xavier Coudert
fxcoudert@gmail.com
Thu Nov 10 10:58:00 GMT 2005
> It is proposed to retain the library version of the DOT_PRODUCT because
> the inline version does not work for types longer that 8 bytes and for a
> future implementation, where the library is used with the option -Os.
I'm not sure we want to work too much on that -Os option. Anyhow, you
don't know if the guy using -Os will end up linking statically or
dynamically.
By the way, are there really people compiling Fortran code and
optimizing for size?
> Unoptimized, the new version of MOD is a factor of two faster than the
> old but the improvement is only 20% for -O2 and more.
I'm not sure I understood that. In both cases, the library must be the
same, no? So it sounds like your new version of MOD is slower at high
optimization levels...
FX
More information about the Fortran
mailing list