Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Volker Barthelmann <volker@vb.franken.de>
Subject: Re: 500 MHz 21164 vs P166 ?!
Date: Tue, 20 May 97 18:15:54 MET	[thread overview]
Message-ID: <9705201715.AA00rzw@vb.franken.de> (raw)
In-Reply-To: <XFMail.970520095955.kanthak@Gazelle.Informatik.RWTH-Aachen.DE>

Hi,

: >Try '-funroll-loops'. This often helps, and it isn't turned on by any
: >-O<x> level. Also avoid unnecessary float/integer conversions.
: I remember Linus saying that '-funroll-all-loops' makes Alphas much slower
: because small loops do no longer fit into L1/L2 cache. Is this true for
: '-funroll-loops', too, or does GCC unroll loops then with respect to L1/L2
: cache size?

I haven't checked with gcc but usually compilers start unrolling the
innermost loops and will not unroll a loop if the unrolled version exceeds
a certain size.

However AFAIK -funroll-all-loops basically affects only those loops where
unrolling doesn't give you anything. Loop-unrolling is (almost?) always
a win if you can determine the number of iterations at compile-time. If
you can calculate them at loop-entry then it's often a win but can also
be a loss because there's a lot of overhead calculating the number of
iterations and choosing the right entry-point of the loop.

Both of these cases should already be handled with -funroll-loops so the
cases where -funroll-all-loops makes a difference are basically the ones
where you cannot eliminate any loop tests and therefore don't save any
instructions anyway.
Maybe there are architectures where this increases performance but I think
most current CPUs don't like it.

Volker

P.S.: What machine-specific options does gcc/Alpha recognize? I've read of
      -mieee here but couldn't find it in the man-page. Are there any other
      options?

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-05-20 17:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <XFMail.970520095955.kanthak@Gazelle.Informatik.RWTH-Aachen.DE>
1997-05-20 17:15 ` Volker Barthelmann [this message]
1997-05-21 11:50 ` RedHat 4.2 Ken Haste Andersen
1997-06-06 17:51 500 MHz 21164 vs P166 ?! Eric Smith
     [not found] <Pine.SGI.3.95.970606104557.983C-100000@leonardo.sr.unh.edu>
1997-06-06 15:19 ` Bradford Smith
     [not found] <339a3c91.259410838@monarch.bess.net>
1997-06-02 23:34 ` Woodstock
  -- strict thread matches above, loose matches on Subject: below --
1997-06-02 22:26 Michael J. Donahue
1997-05-22  8:44 Martin Ostermann
     [not found] <43bu66e1wx.fsf@comnets.rwth-aachen.de>
1997-05-21 18:46 ` Heikki Virkkunen
1997-05-20 12:57 Martin Ostermann
     [not found] <43k9kueh9f.fsf@comnets.rwth-aachen.de>
1997-05-20  7:55 ` Stephan Kanthak
1997-05-20  7:26 Martin Ostermann
     [not found] <Pine.SGI.3.95.970517002216.15379E-100000@leonardo.sr.unh.edu>
1997-05-17 18:29 ` Ken Haste Andersen
     [not found] <Pine.LNX.3.96.970516171235.4358A-100000@stud.pg.infn.it>
1997-05-16 17:31 ` Zach
1997-05-17  4:25 ` Ben Scott
1997-06-02 21:27 ` Alex Krowitz
1997-06-02 21:37   ` Timm Gleason
1997-06-02 21:39   ` Lee Burnside
1997-06-06 14:56   ` Ben Scott
1997-05-16 16:23 Jim Nance
1997-05-16 15:16 Ciro Cattuto
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox