MediumProg.mesa
Created By: Sindhu, August 5, 1985 7:15:44 pm PDT
Copyright © 1984, 1985 by Xerox Corporation. All rights reserved.
Pradeep Sindhu August 5, 1985 7:17:03 pm PDT
DIRECTORY
CacheModels USING [Cache];
AssociativeCache: CEDAR DEFINITIONS = BEGIN
NewCache: PUBLIC PROC [lines: NAT ← 100, quadsPerLine: NAT ← 2, wordsPerQuad: NAT ← 4, lru: BOOLFALSE, 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.
END.