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: Toon Moene Subject: Re: Redhat/Alpha computational performance???? Date: 1998/02/27 Message-ID: <6d6hpj$8c5$2@news.utrecht.NL.net>#1/1 X-Deja-AN: 329143034 References: <6cved5$4rh$1@mrnews.mro.dec.com> <6d4qhe$7p$1@news.utrecht.NL.net> <34F617E2.88B@swcp.com> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha "H.W. Stockman" wrote: > Toon Moene wrote: > > Yes, but aside from that - why use C (or C++) for numerical intensive work ? > > Of course I advised Richard Henderson to solve the 64/32 bit problem in > > strength reduction - that we discussed in the summer of last year - only for > > the g77 side of egcs; I would never have believed that people would do > > serious FP work in . > Some people like to use dynamic allocation with 5-D arrays, and > can't afford (or find) an F90 compiler for their platform, or > find true F90 code gives the same performance as C for dynamic > allocation. OK, one more than, before this really sinks down as a language war: 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. -- Toon Moene (mailto:toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam