From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,baadd4fe2bf1dd84 X-Google-Attributes: gid111c93,public From: "H.W. Stockman" Subject: Re: Redhat/Alpha computational performance???? Date: 1998/02/27 Message-ID: <34F6E777.21C1@swcp.com>#1/1 X-Deja-AN: 329143038 Content-Transfer-Encoding: 7bit References: <6cved5$4rh$1@mrnews.mro.dec.com> <6d4qhe$7p$1@news.utrecht.NL.net> <34F617E2.88B@swcp.com> <6d6hpj$8c5$2@news.utrecht.NL.net> Mime-Version: 1.0 Reply-To: hwstock@swcp.com Content-Type: text/plain; charset=us-ascii Organization: Lentil Sorbet, Inc. Newsgroups: comp.os.linux.alpha Toon Moene wrote: > > "H.W. Stockman" wrote: > > > Toon Moene wrote: > OK, one more than, before this really sinks down as a language war: But that will be fun! > SUBOUTINE AAP(A, N) > REAL A(N, N, N, N, N) > REAL B(N, N, N, N, N) > DO I1 = 1, N > .... > DO I5 = 1, N > B(I5, I4, I3, I2, I1) = A(I5, I4, I3, I2, I1) > ENDDO > .... > ENDDO > > END > And surely, B is a rank-5 dynamically allocated array. Yep -- let's try it with N=30, try to force 8-byte alignment on B, then let's use B from a function external to AAP. Or, let's call AAP a lot, and see how much time we spend allocating the space with each call (when N=30). You make a good point, but we could also come up with dodges to make C more FORTRAN-like -- ways to avoid aliasing, and so forth (in fact we all do!). Truce time soon?