CPU Optimizations

November 27, 2016 ยท View on GitHub

CPU semi-internals that can be used to write more efficient code.

Compilers take most of those into consideration.

Instruction level parallelism

Out of order processing

http://en.wikipedia.org/wiki/Out-of-order_execution

  • http://en.wikipedia.org/wiki/Register_renaming

Megahertz myth

  • http://en.wikipedia.org/wiki/Megahertz_myth

Contents

  1. 1Instruction level parallelism
  2. 1.1Out of order processing
  3. 2Megahertz myth