midterm Flashcards
1
Q
What is aliasing and why may it block the compiler from performing some optimizations?
A
?
2
Q
What causes conflict misses, and how can the cache hardware architecture be changed to reduce them?
A
?
3
Q
Give a simple example of a code motion optimization.
A
?
4
Q
What is the difference between an trap and a fault?
A
?
5
Q
Fully Associative Cache
A
Single Set, many many blocks/lines
6
Q
Direct Mapped Cache
A
Single Block/Line to a set
7
Q
Instruction vs Data vs Unified Cache
A
?
8
Q
Write Back Cache
A
?
9
Q
Write Through Cache
A
?
10
Q
What is a loop unrolling optimization?
A
?
11
Q
Why is branch prediction important in modern processors?
A
?
12
Q
What is the difference between a write-through cache and a write-back cache?
A
?