Optimization of gfortran for execution speed

Richard Henderson rth@twiddle.net
Wed Nov 2 08:13:00 GMT 2005


On Wed, Nov 02, 2005 at 03:11:31PM +0800, Feng Wang wrote:
> > More than that: if the array is SAVEd (or other Fortran words that
> > mean it's in static storage), the descriptor can be static as well,
> > and reside in read-only memory.
> > 
> 
> But the initialization still remains in the loop, especially invoking
> malloc() and free() functions, which are the main cost.

Huh?  The initialization would not be in the loop.  It would be in
the compiler, and not in the program at all.


r~



More information about the Fortran mailing list