| How a CPU Works |
|
|
| $ Check REAL-TIME pricing for Intel Core2 Duo E6600, 2.4 GHz E6600 (BX805576600) Processor Products $ |
|
|
|
| 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 (3)
|
|
|
|
Processor, 8 MB Cache Memory, For Socket LGA775, 1066 MHz Bus Speed, For PC Platforms Read full description...
 Read 1 Epinions reviews
|
$219 - $265
|
|
|
Processor, 1.8 GHz, 800 MHz Bus Speed, 1 MB Cache Memory, For Socket LGA775, For PC Platforms Read full description...
|
$70 - $81
|
|
|
Processor, 1 MB Cache Memory, For Socket AM2, 1000 MHz Bus Speed, For PC Platforms Read full description...
|
$76 - $93
|
|
|
Processor, 2.4 GHz, 1066 MHz Bus Speed, 8 MB Cache Memory, For Socket LGA775, For PC Platforms Read full description...
|
$220 - $417
|
|
|
Processor, 512 KB Cache Memory, For Socket A, 333 MHz Bus Speed, For PC Platforms Read full description...
 Read 3 Epinions reviews
|
$126 - $126
|
|
Latest News |
May 16, 2008 - 7:46 AM |
May 16, 2008 - 7:28 AM |
May 15, 2008 - 8:14 AM |
May 14, 2008 - 8:01 AM |
May 14, 2008 - 7:28 AM |
May 13, 2008 - 2:41 PM |
May 13, 2008 - 7:30 AM |
May 12, 2008 - 7:40 AM |
May 12, 2008 - 7:17 AM |
May 9, 2008 - 7:22 AM |
| .:: More News ::. |
|
Latest Content |
|
|
| Our Most Popular Articles |
674,100 views
|
427,054 views
|
391,103 views
|
388,754 views
|
380,106 views
|
318,005 views
|
294,105 views
|
277,497 views
|
263,877 views
|
252,882 views
|
|
| Latest Threads in Our Forums |
by ElXtronic |
by russinhacker |
by felozp |
by felozp |
by Gabriel Torres |
by Hardware Secrets Team |
by reidy- |
by felozp |
by felozp |
by felozp |
| .:: Visit Our Forums ::. |
|
|