- Aug 12, 2014
- 522
- 3
- 81
Hello,
OK, here's what I mean.
Modern processors have a multitude of expedition and optimization mechanisms.
Some examples are: branch prediction, out-of-order instruction execution, pre-fetching instructions.
But how broad is the processor's scope when it performs these optimizations?
Let's say a big process is loaded into memory and an entire 2 MB page is dedicated to its code.
Does the processor look at the entire page and optimize the entire page before beginning execution?
Or does it just start at the code entry point and only look at the next 10 or 15 instructions and optimize within that small window?
OK, here's what I mean.
Modern processors have a multitude of expedition and optimization mechanisms.
Some examples are: branch prediction, out-of-order instruction execution, pre-fetching instructions.
But how broad is the processor's scope when it performs these optimizations?
Let's say a big process is loaded into memory and an entire 2 MB page is dedicated to its code.
Does the processor look at the entire page and optimize the entire page before beginning execution?
Or does it just start at the code entry point and only look at the next 10 or 15 instructions and optimize within that small window?