|
Logical Operations
|
CF=0, OF=0
|
|
shift
|
CF=value of last bit shifted out; OF=0
|
|
INC, DEC
|
OF and ZF may change, CF unchanged
|
|
cmpl b, a
|
a-b result not stored anywhere
|
|
testq b, a
|
a&b result not stored anywhere
|
|
Enough registers
|
|
No reference to & so no need to go to memory
|
|
No arrays, structures
|
|
3 cases
|
compulsory, capacity, conflict
|
|
How to reduce miss
|
block size++, associativity++, cache size++
|
|
Reducing miss penalty
|
write through (update all) vs write back (update when needed)
|
|
multilevel cache (optimize hit rate L1, miss rate L2)
|
|
|
Replacement policies
|
LRU, LFU, FIFO, rand
|
|
memory management and protection
|
permission bits; uses main efficiently(send unneeded to disk)
|
|
Process isolation/memory protection
|
own add spaces; can't interfere with another's memory
|
|
loading linking simplified
|
|
|
Unallocated
|
not yet created, no data, no space
|
|
Uncached/cached
|
currently cached/not cached
|
|
cache uses PA, since with VA, although can be accessed asap, aliasing, 2 VA may map to same block, would not know which one
|
|
memory utilization (sum of malloc'd data/heap size)
|
|
good performance (malloc/free calls return quick)
|
|
constraints: can't modify malloc'd memory; can't move malloc'd block
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.