| How a CPU Works |
|
|
$ Check REAL-TIME pricing for INTEL Core i7 Extreme i7-965 BX80601965 3.2ghz w/8mb cache lga1366-pin retail boxed w/cooling fan 3 years warranty $ |
|
|
|
|
|
| Speculative Execution |
Let’s suppose that one of this generic instructions is a conditional branching. What will the out-of-order engine do? If the CPU implements a feature called speculative execution (all modern CPUs do), it will execute both branches. Consider the example below: 1. generic instruction 2. generic instruction 3. if a=<b go to instruction 15 4. generic instruction 5. generic instruction 6. generic instruction 7. math instruction 8. generic instruction 9. generic instruction 10. math instruction … 15. math instruction 16. generic instruction …
When the out-of-order engine analyses this program, it will pull instruction 15 into one of the FPUs, since it will need one math to fill one of the FPUs that otherwise would be idle. So at a given moment we could have both branches being processed at the same time. If when the CPU finishes processing the third instruction a is greater than b, the CPU will simple discard the processing of instruction 15. You may think this is a waste of time, but in fact it is not. It doesn’t cost anything to the CPU to execute that particular instruction, because the FPU would be otherwise idle anyway. On the other hand, if a=<b the CPU will have a performance boost, since when instruction 3 asks for instruction 15 it will be already processed, going straight to instruction 16 or even further, if instruction 16 has also already been processed by the out-of-order engine.
Of course everything we explained on this tutorial is an over simplification in order to make this very technical subject easier to understand. Read our Inside Pentium 4 Architecture tutorial in order to study the architecture of Pentium 4 processor. We will be also posting an Athlon 64 architecture tutorial very soon. |
| Pages (9): « 1 2 3 4 5 6 7 8 [9] |
| Print Version | Send to Friend |
|
Bookmark Article
| Comments (8)
|
|
Recommended Deal |
 | Advanced Micro Devices - Processor 1 x Phenom II X3 710 / 2.6 GHz Socket AM3 L3 6 MB Box HDX710WFGIBOX
|
|
Latest News |
July 3, 2009 - 1:27 PM PST |
July 2, 2009 - 2:25 PM PST |
July 1, 2009 - 11:40 AM PST |
June 30, 2009 - 5:03 PM PST |
June 29, 2009 - 6:57 PM PST |
June 26, 2009 - 4:33 AM PST |
June 25, 2009 - 6:00 PM PST |
June 24, 2009 - 7:54 AM PST |
June 23, 2009 - 11:20 AM PST |
June 22, 2009 - 2:00 AM PST |
| .:: More News ::. |
|
Latest Content |
|
|
| Our Most Popular Articles |
987,914 views
|
616,951 views
|
595,417 views
|
517,627 views
|
512,329 views
|
495,456 views
|
467,117 views
|
458,094 views
|
342,841 views
|
320,030 views
|
|
| Latest Threads in Our Forums |
by tomahawk 1705 |
by Hardware Secrets Team |
by jolphil |
by Hardware Secrets Team |
by Hardware Secrets Team |
by Gabriel Torres |
by Gabriel Torres |
by Olle P |
by Olle P |
by Olle P |
| .:: Visit Our Forums ::. |
|
|