From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,1649e8215a34bad7 X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: Fast math library for Alpha/Linux (was Re: Alpha vs. P2?) Date: 1998/07/31 Message-ID: <6ps941$2au$2@newnews.nl.uu.net>#1/1 X-Deja-AN: 377165814 References: <6pqcfm$7a$1@sunsystem5.informatik.tu-muenchen.de> <6pqspv$6o2$1@news-1.news.gte.net> <6pru3p$nju$1@eunhasu.kjist.ac.kr> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha ghsong@PlSNoSpamkjist.ac.kr (G. Hugh SONG) wrote: > I have a question on this libm thing. I thought that this libm library the most > critical thing for floating-point calculation. But not many people mention > about this. We are all lamenting the lack of a decent FORTRAN compiler. > Which is the most critical part, the compiler or libm? [I'll try to answer this from the egcs (http://egcs.cygnus.com) perspective] This is a good question and - unfortunately - there is no simple answer to it. It all depends on what computations your main application is doing. A lot a transcendentals (sin, cos, exp, log, etc ...) were a problem in the past on Alpha's. The standard routines in (g)libc aren't that fast; enter Joachim Wesner's work which should render this part a lot better. For the ordinary "traverse arrays doing +,-,*,/" there's still a short-coming (on all architectures egcs supports) that's in the process of being repaired, namely the fact that neighboring array elements get assigned separate registers: do i = 2, n b(i) = a(i - 1) + a(i) enddo one would like to have the a(i-1) addressed as Rx(-4) (assuming Rx holds the current pointer to a(i)). -- 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