midterm Flashcards

1
Q

What is aliasing and why may it block the compiler from performing some optimizations?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What causes conflict misses, and how can the cache hardware architecture be changed to reduce them?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give a simple example of a code motion optimization.

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between an trap and a fault?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Fully Associative Cache

A

Single Set, many many blocks/lines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Direct Mapped Cache

A

Single Block/Line to a set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Instruction vs Data vs Unified Cache

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Write Back Cache

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Write Through Cache

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a loop unrolling optimization?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why is branch prediction important in modern processors?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between a write-through cache and a write-back cache?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly