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 > Parallel execut...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 12 Topic 4996 of 5160
Post > Topic >>

Parallel execution of carry dependent instructions ?

by "Skybuck Flying" <BloodyShame@[EMAIL PROTECTED] > May 4, 2008 at 04:54 PM

Hello,

Suppose I write x86 code like so:

  bt eax, 0
  adc [edx], 0

  bt eax, 1
  adc [edx + 4], 0

  bt eax, 2
  adc [edx + 8], 0

The bt (bit test) instruction sets the carry flag if the bit position is 
set, otherwise the carry flag is cleared.
The adc instruction adds the carry flag.

Then this instruction pair is repeated multiple times as shown above. 
(Slightly altered by an offset: +4, +8, etc)

I read about how cpu's can execute multiple integer instructions at the
same 
time, which makes me wonder.

Do cpu's nowadays have multiple carry flags underneath ? I would think
so... 
otherwise how can they possible execute multiple integer instructions ?

So my question is:

Can the instructions above be executed in parallel/at the same time ?

Bye,
  Skybuck.
 




 12 Posts in Topic:
Parallel execution of carry dependent instructions ?
"Skybuck Flying"  2008-05-04 16:54:41 
Re: Parallel execution of carry dependent instructions ?
"Skybuck Flying"  2008-05-04 17:03:58 
Re: Parallel execution of carry dependent instructions ?
"Skybuck Flying"  2008-05-04 17:20:52 
Re: Parallel execution of carry dependent instructions ?
MitchAlsup <MitchAlsup  2008-05-04 10:45:23 
Re: Parallel execution of carry dependent instructions ?
Robert Redelmeier <red  2008-05-04 18:53:59 
Re: Parallel execution of carry dependent instructions ?
"Rod Pemberton"  2008-05-05 03:45:29 
Re: Parallel execution of carry dependent instructions ?
"Skybuck Flying"  2008-05-05 21:35:47 
Re: Parallel execution of carry dependent instructions ?
ilya <asmdev@[EMAIL PR  2008-05-06 21:52:35 
Re: Parallel execution of carry dependent instructions ?
"Terry Russell"  2008-05-08 21:49:38 
Re: Parallel execution of carry dependent instructions ?
Robert Redelmeier <red  2008-05-08 13:28:57 
Re: Parallel execution of carry dependent instructions ?
"Terry Russell"  2008-05-09 01:21:04 
Re: Parallel execution of carry dependent instructions ?
"Wolfgang Kern"  2008-05-08 23:01:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Oct 10 23:40:51 CDT 2008.