ShortTwoTierExample.cm
Created by: Serlet, April 12, 1985 3:17:45 pm PST
Last Edited by: Serlet, April 15, 1985 6:00:55 pm PST
Last Edited by: Barth, April 16, 1985 3:56:35 pm PST
Last Edited by: Sindhu, April 20, 1985 0:04:08 am PST
-- Starting WrapDragoman
BcdLister
WrapDragoman
Run AssociativeCacheImpl
Run RealCache
-- Initializing the thing
&handleWrapDragoman.Start[instr: 1, data: 1] -- number of caches
-- Specifying the caches
&rcAssociativeCache.NewCache[lines: 512, quadsPerLine: 8, lru: FALSE] -- real cache
WrapDragoman.SetInstructionCache[handle: &handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, quadsPerLine: 4, lru: FALSE, realCache: &rc]] -- instruction cache
WrapDragoman.SetDataCache[handle: &handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, quadsPerLine: 4, lru: FALSE, realCache: &rc]] -- data cache
-- Marking interesting GFI's
WrapDragoman.MarkGFI[&handle, "CommandToolUtilitiesImpl", "FileViewerOpsImpl", "FileStreamImpl", "FileNamesImpl", "FileImpl"]
← WrapDragoman.MarkGFI[&handle, "IOPrintImpl", "IOCommonImpl", "IOSimpleStreamsImpl", "IOConvertImpl", "ViewerIOImpl", "IOScanImpl"]
← WrapDragoman.MarkGFI[&handle, "FSLockImpl", "FSFileOpsImpl", "FSReportImpl", "FSOpenFileImpl", "FSStreamImpl", "FSNameImpl"]
← WrapDragoman.MarkGFI[&handle, "RopeImpl", "RopeImplExt", "ListImpl", "AtomImpl", "ConvertUnsafeImpl"]
Compile
← WrapDragoman.MarkGFI[&handle, "Compiler"]
-- Running the simulation
WrapDragoman.Run[&handle, "Compile"]
&rc.print[&rc, &handle.tsOut, "Real cache"]