How can a program's size increase the rate of cache misses?
问题 Wikipedia has the following statement in its Loop Unrolling article: Increased program code size, which can be undesirable, particularly for embedded applications. Can also cause an increase in instruction cache misses, which may adversely affect performance. Why is this? Also, having a program's code size be larger due to large amounts of dead code won't increase the rate of cache misses, since dead code won't be executed? 回答1: Code is typically read into caches in whole cache lines , which