comp.lang.ada
 help / color / mirror / Atom feed
From: magnesium.club.cc.cmu.edu!news.sei.cmu.edu!ae@uunet.uu.net  (Arthur Evans
Subject: Re: storing arrays for Fortran (was: QUERY ABOUT MONITOR)
Date: 5 Aug 93 13:29:22 GMT	[thread overview]
Message-ID: <1993Aug5.092922.24986@sei.cmu.edu> (raw)

mfeldman@seas.gwu.edu (Michael Feldman) says that code like
    FOR I IN 1..10 LOOP
       A(I) := B(I) + C(I);
    END LOOP;
should be vectorized if the hardware supports it.  He adds:
    How many compilers out there will compile an array assignment like
       A := B;   -- who cares what the typedefs are
    into a _minimum_ number of block-move instructions for that target?

One problem here is a weakness in the design of Ada-83.  The rules in
11.6 about when exceptions are raised and the status of data at that
point conspire to preclude such optimizations.  This problem is
addressed in 9X and is, as far as I can tell, solved properly.  (Consult
your favorite language lawyer for details.)

Art Evans
----------------------------------------------
Arthur Evans, Jr, PhD           Ada Consultant
461 Fairview Road
Pittsburgh PA  15238-1933
412-963-0839
ae@sei.cmu.edu

             reply	other threads:[~1993-08-05 13:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-05 13:29 magnesium.club.cc.cmu.edu!news.sei.cmu.edu!ae [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-09  5:18 storing arrays for Fortran (was: QUERY ABOUT MONITOR) Robert Dewar
1993-08-05 18:41 Michael Feldman
1993-08-05  3:42 Michael Feldman
1993-08-05  1:16 agate!library.ucla.edu!ddsw1!news.kei.com!sol.ctr.columbia.edu!math.ohio-
1993-08-04 17:46 agate!library.ucla.edu!ddsw1!news.kei.com!sol.ctr.columbia.edu!math.ohio-
1993-08-04 13:01 magnesium.club.cc.cmu.edu!news.sei.cmu.edu!ae
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox