Hardware Secrets
Home | Audio | Case | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
News
Reviews
Tutorials
Main Menu
About Us
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Gabriel's Blog
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Newsletter
Subscribe today!
Search




Recommended Book
The Winn L. Rosch Hardware Bible (6th Edition)
By Winn L Rosch
Que
Price: $0.02

Home » CPU
How a CPU Works
Author: Gabriel Torres
Type: Tutorials Last Updated: September 26, 2005
Page: 9 of 9
$ Check REAL-TIME pricing for Intel Core2 Duo E6600, 2.4 GHz E6600 (BX805576600) Processor Products $
ZipZoomfly.com: $237.90 Amazon: $273.28

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)

Related Content
  • Pentium 4 Thermal Throttle
  • Maximum CPU Temperature
  • Intel Fab18 Factory Tour in Kiryat Gat, Israel
  • Sempron 3000+ and Celeron D 331 Review
  • How to Upgrade Your CPU

  • Compare Prices for CPUPowered by Shopping.com
    Intel Core?2 Quad Q6600, 2.40 GHz (BX80562Q6600) Boxed Processor
    Processor, 8 MB Cache Memory, For Socket LGA775, 1066 MHz Bus Speed, For PC Platforms
    Read full description...

    Read 1 Epinions reviews
    $219 - $265 Compare Prices
    Intel Pentium® Dual-Core E2160, 1.80 GHz E160 (BX80557E2160) Boxed Processor
    Processor, 1.8 GHz, 800 MHz Bus Speed, 1 MB Cache Memory, For Socket LGA775, For PC Platforms
    Read full description...
    $70 - $81 Compare Prices
    AMD Athlon? 64 3800 3800+, 2 GHz AMD Processor in a Box (PIB)
    Processor, 1 MB Cache Memory, For Socket AM2, 1000 MHz Bus Speed, For PC Platforms
    Read full description...
    $76 - $93 Compare Prices
    Intel Core2? Quad Q6600, 2.40 GHz Q6600 (HH80562PH0568M) OEM / Unboxed Processor
    Processor, 2.4 GHz, 1066 MHz Bus Speed, 8 MB Cache Memory, For Socket LGA775, For PC Platforms
    Read full description...
    $220 - $417 Compare Prices
    AMD Athlon? XP 2800+, 2.8 GHz (AXDA2800BOX) Retail Processor
    Processor, 512 KB Cache Memory, For Socket A, 333 MHz Bus Speed, For PC Platforms
    Read full description...

    Read 3 Epinions reviews
    $126 - $126 Compare Prices

    RSSLatest News
    Thermaltake Releases PW850i ProWater
    May 16, 2008 - 7:46 AM
    Arctic Cooling Intros Arctic RC
    May 16, 2008 - 7:28 AM
    VIA Intros EPIA PX5000EG Pico-ITX Board
    May 15, 2008 - 8:14 AM
    OCZ Releases Two Reaper HPC DDR3
    May 14, 2008 - 8:01 AM
    Arctic Cooling Unveils Freezer 7 LP
    May 14, 2008 - 7:28 AM
    Canon Launches SELPHY CP770
    May 13, 2008 - 2:41 PM
    AMD Rolls Out 5 New x86 Server Processors
    May 13, 2008 - 7:30 AM
    Transcend Launches StoreJet 35 Ultra
    May 12, 2008 - 7:40 AM
    Biostar Intros TPower N750 Motherboard
    May 12, 2008 - 7:17 AM
    MSI Launches Titan 700
    May 9, 2008 - 7:22 AM
    .:: More News ::.

    RSSLatest Content
    Rocketfish 700 W Power Supply Review
    Honeywell Airlite 700 Wireless Bluetooth Headset Review
    Antec TruePower Quattro 850 W Power Supply Review
    PC Power & Cooling Silencer 750 Quad Power Supply Review
    AcBel Polytech iPower 660 Power Supply Review
    Enermax PRO82+ 525 W Power Supply Review
    Cooler Master eXtreme Power Plus 460 W (RS-460-PMSR-A3) Power Supply Review
    Are Intel chipsets really capable of running DirectX 10 games?
    Thermaltake Armor+ ESA Case Review
    SilverStone Strider ST50F 500 W Power Supply Review
    New Layout on Hardware Secrets
    Cooler Master Cosmos S Case Review
    What to Do If Your Computer Doesn’t Turn On
    How to Use the SPDIF Output from Sound Blaster X-Fi Sound Cards
    SLI vs. CrossFire

    Our Most Popular Articles
    Maximum CPU Temperature
    674,100 views
    nVidia Chips Comparison Table
    427,054 views
    AMD ATI Chips Comparison Table
    391,103 views
    ATI Radeon X1300 Pro Review
    388,754 views
    ATI Radeon X1600 XT Review
    380,106 views
    How to Find Out Your Motherboard Manufacturer and Model
    318,005 views
    Connecting Two PCs Using a USB-USB Cable
    294,105 views
    How To Correctly Apply Thermal Grease
    277,497 views
    Sempron vs. Athlon XP
    263,877 views
    Sempron 3400+ Review
    252,882 views

    Latest Threads in Our Forums
    Installing 3x 1GB Ram modules
    by ElXtronic
    slower than advertised upload speeds
    by russinhacker
    Help needed: Laptop doesn't boot
    by felozp
    Is it good option?
    by felozp
    Rocketfish 700W PC Power Supply
    by Gabriel Torres
    Rocketfish 700 W Power Supply Review
    by Hardware Secrets Team
    Overclocking setup, Intel or AMD?
    by reidy-
    Need your help!!
    by felozp
    Recommendations for document capture software
    by felozp
    PC SPDIF ports and speakers
    by felozp
    .:: Visit Our Forums ::.

    © 2004-8, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)