From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,FROM_ADDR_WS autolearn=no autolearn_force=no version=3.4.5-pre1 Date: 5 Aug 93 13:29:22 GMT 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) Message-ID: <1993Aug5.092922.24986@sei.cmu.edu> List-Id: 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