- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
I have a doubt.
if I have this code:
b/=5;
a+=10;
b*=5;
a*=30;
How the processor will execute this code?
The add is more fast than the division, then the second command will finish before of the first. The processor will execute the fourth command or it will wait until that the second command was finished? It will execute of the program order or in another order?
Thanks
[]'s
Rhapsodyv
I have a doubt.
if I have this code:
b/=5;
a+=10;
b*=5;
a*=30;
How the processor will execute this code?
The add is more fast than the division, then the second command will finish before of the first. The processor will execute the fourth command or it will wait until that the second command was finished? It will execute of the program order or in another order?
Thanks
[]'s
Rhapsodyv
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Customer,
I am not clear if this question is related to Intel IPP forum, could you please give us some more details so we can better understand about this and try to find a right resource to answer your questions.
I am not clear if this question is related to Intel IPP forum, could you please give us some more details so we can better understand about this and try to find a right resource to answer your questions.
Thanks,
Ying
Ying
Intel IPP Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You know, the modern processors are able to execute instructions out of order, but theyoutputtheresult of instructions in order they are written in the programm. So, if there is no data dependency between adjacent instructions they will be executed in parallel, but if any dependency, of course the next instruction will wait for the result from previous one.
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page