From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3626ccca6bb70e55 X-Google-Attributes: gid111c93,public From: jg@pa.dec.com (Jim Gettys) Subject: Re: Compaq to port its Fortran and C compilers to Alpha Linux Date: 1999/04/09 Message-ID: <7ejpuh$tna@src-news.pa.dec.com>#1/1 X-Deja-AN: 464281631 Content-Transfer-Encoding: quoted-printable References: <7ei0gg$1kg$1@news.tuwien.ac.at> To: anton@mips.complang.tuwien.ac.at (Anton Ertl) Content-Type: text/plain; charset=iso-8859-1 Organization: Systems Research Center, Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Originator: pachydrm@pachyderm.pa.dec.com > From: anton@mips.complang.tuwien.ac.at (Anton Ertl) > Date: 8 Apr 1999 10:30:40 GMT > Newsgroups: comp.os.linux.alpha > Subject: Re: Compaq to port its Fortran and C compilers to Alpha Linux > ----- > In article <370BA607.1F391244@moene.indiv.nluug.nl>, > Toon Moene writes: > [Digital compilers] > > I think I'll buy one when I have obtained an Alpha > > system to study the differences in code generation. > > I.e., if we want to write decent compilers for the Alpha, instead of > reading an optimization guide (which, e.g., Intel and AMD provide for > free for their CPUs) we have to buy a compiler from Compaq, look at > the code it generates, and then measure whether the things it does are > genuine optimizations or artifacts of the optimizer/code generator. > > And no, appendix A of the Alpha AXP Architecture reference manual does > not cut it. Its "factor of" terminology is unclear, and, e.g., it does > not explain the results I see on a 21264 when I vary > http://www.complang.tuwien.ac.at/forth/threading/direct.c. > Why would you expect to find the information you need to optimize in the *ARCHITECTURE* manual? There are multiple implementations of the chip architecture, and then there are an even larger number of systems they plug into, which also affects performance. The architecture spec gives you what you can rely on across multiple implementations only. So you need to go look at the specifications of the chips (and potentially) systems themselves to get the information to optimize compilers. You'll find the chip related spec's in: http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library= .html And therein you'll find the specs for the various Alpha chips, which go into gorey detail on the pipelines, instruction issue conflicts, etc. At a higher level, you then have to know something about the parameters of the systems the Alpha's plug into to get the complete picture (e.g. external cache organization and clocking parameters used for a given clock rate). Some of the OEM Alpha board specs are there as well; I dunno if the specs for the larger systems are online or not. In any case, the *architecture* spec is not the place to find the information you are looking for. I hope this helps. - Jim Gettys