This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Optimization of gfortran for execution speed
- From: Richard Henderson <rth at twiddle dot net>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: THOMAS Paul Richard 169137 <prthomas at drfccad dot cea dot fr>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Tue, 1 Nov 2005 20:24:05 -0800
- Subject: Re: Optimization of gfortran for execution speed
- References: <756DFD3DE8F1D411A59A00306E06E84702C428A1@drfccad.cad.cea.fr> <7fbbd9d889648e0f7e87a78e457cafb2@physics.uc.edu>
On Thu, Oct 20, 2005 at 12:15:05PM -0400, Andrew Pinski wrote:
> A way to speed/fixing this up, is to make struct array1_real4 for each
> array
> at the beginning of the function, even though they might not be used.
> You should be able to let DCE do its job of cleanuping up unused
> structs.
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.
r~