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




Recommended
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set)
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set), by Winn L Rosch (Que), starting at $1.95
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 Athlon II Processor CPU 620 2.6GHz X4 Quad AM3 $.
Newegg: $99.00 BestBuy: $109.99
TigerDirect: $99.99 Buy.com: $108.86

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)

Related Content
  • Pentium 4 Thermal Throttle
  • Maximum CPU Temperature
  • Intel Fab18 Factory Tour in Kiryat Gat, Israel
  • How to Upgrade Your CPU
  • Core 2 Duo, Core 2 Quad, Phenom X3 and Phenom X4: Which One is the Best USD 200 CPU?

  • Recommended Deal.
    M4A785TD-V EVO AMD Socket Desktop 785G at AM3M4A785TD-V EVO AMD Socket Desktop 785G at AM3


    Newegg: $99.99 Amazon: $99.99
    Buy.com: $97.21 CompUSA: $109.99

    RSSLatest News
    AMD/ATI Launches Radeon HD 5570
    February 9, 2010 - 10:38 AM PST
    Samsung Announces Hard Disk with Michael Jackson's THIS IS IT
    February 8, 2010 - 11:19 AM PST
    New Toughpower XT PSUs from Thermaltake
    February 5, 2010 - 11:41 AM PST
    MSI Launches R5770 Hawk Video Card
    February 5, 2010 - 11:32 AM PST
    NZXT Unveils Line of Premium Cables and Case Fans
    February 5, 2010 - 11:24 AM PST
    AMD/ATI Launches Radeon HD 5450
    February 4, 2010 - 11:44 AM PST
    Patriot Debuts Sector 5 Memory Kit
    February 3, 2010 - 7:41 AM PST
    Samsung Intros 1.5 TB/2 TB EcoGreen F3EG Hard Disks
    February 3, 2010 - 7:38 AM PST
    Acer Launches Full HD 3D LCD Monitor
    February 3, 2010 - 7:32 AM PST
    New Strider Essential PSUs from SilverStone
    February 1, 2010 - 9:17 AM PST
    .:: More News ::.

    RSSLatest Content
    Athlon II X4 635 and Phenom II X2 555 CPU Review
    Thermaltake SpinQ VT CPU Cooler Review
    All Atom Models
    Motorola Droid Cell Phone Review
    Cooler Master GX 750 W Power Supply Review
    MSI P55-GD85 Motherboard
    ASRock H55DE3 Motherboard
    ECS H55H-CM Motherboard
    NZXT Hades Case Review
    Is It Time to Move to Solid-State Storage?
    EVGA H55 Motherboard
    SilverStone Strider Plus 750 W Power Supply Review
    Anatomy of SSD Units
    Mushkin Volta 600 W Power Supply Review
    Power Supplies Re-Tested - Part 4

    Our Most Popular Articles
    Maximum CPU Temperature
    1,128,213 views
    How to Find Out Your Motherboard Manufacturer and Model
    781,564 views
    nVidia Chips Comparison Table
    723,732 views
    Connecting Two PCs Using a USB-USB Cable
    646,824 views
    How To Correctly Apply Thermal Grease
    604,049 views
    AMD ATI Chips Comparison Table
    591,834 views
    ATI Radeon X1300 Pro Review
    500,729 views
    ATI Radeon X1600 XT Review
    489,103 views
    How To Perform a BIOS Upgrade
    427,514 views
    Understanding RAM Timings
    364,208 views

    Latest Threads in Our Forums
    New builder needs feedback on rig....
    by RedwoodRythym
    AMD/ATI Launches Radeon HD 5570
    by Hardware Secrets Team
    Thermaltake TR2 RX 750 W Power Supply Review
    by Silentbob
    How fast is fast? How much heat is too much??
    by Ios_Angel
    DVD-ROM problems (Pioneer DVD-115HA)
    by Ios_Angel
    Partitioning a Reformatted HD
    by Merman
    AMD Phenom II X4 925 on my AM2 board
    by tomahawk 1705
    Athlon II X4 635 and Phenom II X2 555 CPU Review
    by Hardware Secrets Team
    Working on Frankenstein
    by nicolatesla
    Thermaltake SpinQ VT CPU Cooler Review
    by Olle P
    .:: Visit Our Forums ::.


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