AssociativeCache.mesa
Copyright © 1984, 1985 by Xerox Corporation. All rights reserved.
Last Edited by: Sindhu, April 23, 1985 6:33:05 pm PST
NewCache:
PUBLIC
PROC [lines:
NAT ← 100, quadsPerLine:
NAT ← 2, wordsPerQuad:
NAT ← 4, lru:
BOOL ←
FALSE, realCache, mapCache: CacheModels.Cache ←
NIL]
RETURNS [cache: CacheModels.Cache]
Creates a new cache with the given configuration. If there is a real cache to be used on cache misses, then it can also be supplied, but it is not necessary (especially for the real cache itself!) Note that the individual operations can be intercepted for special hacking.