Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Re: Reordering ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 11 Topic 2331 of 2461
Post > Topic >>

Re: Reordering of functions

by glen herrmannsfeldt <gah@[EMAIL PROTECTED] > Feb 24, 2008 at 01:59 AM

Tim Frink wrote:
>  For example, conditional jumps with a backward displacement might
> be always predicted as taken. Here the buffering of the branch
> target might be omitted.

Someone doing timing tests on an IBM machine, I believe an ESA/390
machine, found that BXLE (branch on index less than or equal) predicts
the branch as taken, and BXH (branch on index high) predicts as not
taken.

The traditional use for BXLE is at the end of a loop (*), and BXH at
the beginning of a loop.  The person doing the tests tried BXH at the
end and BXLE at the beginning with much slower results.

(*) It was used for DO loops in Fortran IV (Fortran 66) code.  The
standard allowed, but did not require, the test at the end of the loop
(such that there is at least one trip through the loop even when the
end condition is already satisfied).

-- glen
 




 11 Posts in Topic:
Reordering of functions
Tim Frink <plfriko@[EM  2008-02-18 17:22:52 
Re: Reordering of functions
"Nikolai Kim" &  2008-02-18 22:33:31 
Re: Reordering of functions
Tim Frink <plfriko@[EM  2008-02-21 09:53:21 
Re: Reordering of functions
=?ISO-8859-15?Q?Jan_Vorbr  2008-02-25 11:39:05 
Re: Reordering of functions
Joel Yliluoma <bisqwit  2008-02-19 11:33:56 
Re: Reordering of functions
Tim Frink <plfriko@[EM  2008-02-21 09:41:38 
Re: Reordering of functions
glen herrmannsfeldt <g  2008-02-24 01:59:56 
Re: Reordering of functions
Chris F Clark <cfc@[EM  2008-02-19 09:55:43 
Re: Reordering of functions
Tim Frink <plfriko@[EM  2008-02-21 09:36:08 
Re: Reordering of functions
Chris F Clark <cfc@[EM  2008-02-24 17:57:01 
Re: Reordering of functions
George Neuner <gneuner  2008-02-25 17:15:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 19:14:01 CDT 2008.