From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c3c048cdc321cd64 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-01-28 13:59:46 PST Path: gmd.de!xlink.net!fauern!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!gatekeeper.us.oracle.com!decwrl!pa.dec.com!bier.kar.dec.com!neideck From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz) Newsgroups: comp.unix.osf.misc Subject: Re: Optimization on ALPHA OSF1 ?? Date: 27 Jan 1994 13:39:15 GMT Organization: CEC Karlsruhe Distribution: comp Message-ID: <2i8g63INNcsu@usenet.pa.dec.com> References: NNTP-Posting-Host: BIER In article gary@gog.dfci.harvard.edu (Gary Beckmann) writes: >I've been fooling around with some very simple minded benchmarks for >the people I work for, and I've noticed that compiling the program >with -O _slows_ down the loops doing floating point operations. I >get a factor of about 0.7 speedup Gary was kind enough to let me have a look at his code and there are two points to it: a) The program spends more than half of it's cycles in *integer* division. First, this is a library routine on Alpha and a hardware instruction on MIPS, hence the difference is understandable. Optimization doesn't affect that part, because the libaries are the same regardless what flags you use. b) The program just happens to trash the 8 Kbyte direct mapped I-cache with the particular release of compiler and OS (V1.3). With V2.0 compilers the speedups where as expected (but then , other programs may exhibit that behaviour, as with any direct mapped instruction cache). Therefore, the program just happens to be one of the one-in-a-thousand time I-cache trashers, plus it's not measuring the speed of floating point. Burkhard Neidecker-Lutz Distributed Multimedia Group, CEC Karlsruhe BERKOM II Project Digital Equipment Corporation neideck@nestvx.enet.dec.com