From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,12382a7f57af080a X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: Alpha performance under Linux ? Date: 1997/10/05 Message-ID: <617n32$80b$1@news.utrecht.NL.net>#1/1 X-Deja-AN: 278485763 References: <60n1ml$as5@wizard.imp.priconet.de> <3430B101.19B3835@tarkus.se> <60utg8$h0v@wizard.imp.priconet.de> <3436119E.6063D0D3@tarkus.se> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha Carlos Vidal wrote: > Marcus Maskos wrote: > > So I am interested in informations how good a Alpha chip > > performs (interger an floating point) when working with linux and compiling > > with gcc or g77. Or is there a need for buying a commercial compiler to reach > > full performance of an Alpha chip? > > Gcc/g77 are quite still very slow (in relative terms) on the Alpha. One of the reasons g77 leads to slow executables on Alpha is the inability of the (current) backend to deal efficiently with array index calculations which use half words (which is the default case if you're just using Fortran programs with ordinary INTEGERs as array indices). We are working on that problem. A (non-supported) way of temporarily (i.e. until the *real* problem is fixed) work-around this shortcoming is setting the preprocessor name FFECOM_FASTER_ARRAY_REFS to 1 instead of 0 in f/com.c. This will make the Fortran frontend spell out the array indexing computation to the code generation phase, which happens to work around the "subword index" problem. However, use at your own risk ! -- 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.ai.mit.edu; NWP: http://www.knmi.nl/hirlam