A journey through the CPU pipeline

“It is good for programmers to understand what goes on inside a processor. The CPU is at the heart of our career. What goes on inside the CPU? How long does it take for one instruction to run? What does it mean when a new CPU has a 12-stage pipeline, or 18-stage pipeline, or even a ‘deep’ 31-stage pipeline? Programs generally treat the CPU as a black box. Instructions go into the box in order, instructions come out of the box in order, and some processing magic happens inside. As a programmer, it is useful to learn what happens inside the box. This is especially true if you will be working on tasks like program optimization. If you don’t know what is going on inside the CPU, how can you optimize for it? This article is about what goes on inside the x86 processor’s deep pipeline.”

25 Comments

  1. 2013-05-18 1:03 am
    • 2013-05-18 1:51 am
      • 2013-05-18 3:03 am
      • 2013-05-18 3:09 am
        • 2013-05-18 3:44 am
          • 2013-05-18 3:51 am
        • 2013-05-18 5:22 am
          • 2013-05-18 3:21 pm
          • 2013-05-18 3:59 pm
          • 2013-05-18 7:31 pm
          • 2013-05-18 8:29 pm
          • 2013-05-19 2:17 am
          • 2013-05-19 6:19 pm
          • 2013-05-20 4:03 am
          • 2013-05-20 2:12 pm
          • 2013-05-20 3:22 pm
          • 2013-05-20 5:58 pm
          • 2013-05-20 9:49 pm
          • 2013-05-20 6:01 pm
          • 2013-05-20 10:55 pm
          • 2013-05-20 11:55 pm
          • 2013-05-21 12:54 am
          • 2013-05-21 2:37 am
          • 2013-05-21 4:02 am
  2. 2013-05-18 1:57 am