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 > Assembly Language > Re: How many br...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 5002 of 5156
Post > Topic >>

Re: How many branches in a loop can be predicted successfully ?

by MitchAlsup <MitchAlsup@[EMAIL PROTECTED] > May 6, 2008 at 03:17 PM

On May 6, 1:10=A0pm, "Skybuck Flying" <BloodySh...@[EMAIL PROTECTED]
> wrote:
> So I think this means:
>
> if True then
> begin
> =A0 =A0 // processor will think this won't be executed at the first
time.
> end;

You got that one backwards. The

if( TRUE )
{
    // this code will always be executed
}

So the branch associated with the if statement will never be taken.

But ANY reasonable compiler will remove the branch.
 




 5 Posts in Topic:
How many branches in a loop can be predicted successfully ?
"Skybuck Flying"  2008-05-06 18:35:02 
Re: How many branches in a loop can be predicted successfully ?
"Skybuck Flying"  2008-05-06 21:10:35 
Re: How many branches in a loop can be predicted successfully ?
MitchAlsup <MitchAlsup  2008-05-06 15:17:23 
Re: How many branches in a loop can be predicted successfully ?
"Skybuck Flying"  2008-05-07 01:36:06 
Re: How many branches in a loop can be predicted successfully ?
hutch-- <hutch@[EMAIL   2008-05-06 19:55:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 7 16:04:24 CDT 2008.