DIRECTORY AssociativeCache, CacheModels, Commander, Convert, DirectMapCache, Dragoman, Rope; DragomanWaterlilyRuns: CEDAR PROGRAM IMPORTS AssociativeCache, DirectMapCache, Commander, Dragoman, Rope SHARES Dragoman = BEGIN TwoToTheTwo: PROC[n: INT] RETURNS[INT] = { IF n=0 THEN RETURN[1] ELSE RETURN[2*TwoToTheTwo[n-1]]}; MarkWaterlilyGFIs: PROC [handle: Dragoman.Handle] = { Dragoman.MarkGFI[handle, "Waterlily", "IOScanImpl", "FSStreamImpl", "SymTabImpl", "ProcessImpl", "IOCommonImpl"]; Dragoman.MarkGFI[handle, "FSMainImpl2", "SymTabImpl", "AllocatorImpl", "RopeImpl", "IOCommonImpl"]; }; DragomanWaterlilyRunsGo: Commander.CommandProc = { BEGIN rc, mc: CacheModels.Cache; handle: Dragoman.Handle _ Dragoman.Start[backingFile: Rope.Cat["SimWaterlily.100.1.ts"], instr: 1, data: 1]; rc _ DirectMapCache.NewCache[lines: 512, quadsPerLine: 8]; -- real cache mc _ AssociativeCache.NewCache[lines: 256, quadsPerLine: 4, wordsPerQuad: 1]; -- map cache Dragoman.SetInstructionCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 100, wordsPerQuad: 4, quadsPerLine: 1, lru: FALSE, realCache: rc, mapCache: mc]]; -- instruction cache Dragoman.SetDataCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 100, wordsPerQuad: 4, quadsPerLine: 1, lru: FALSE, realCache: rc, mapCache: mc]]; -- data cache MarkWaterlilyGFIs[handle]; Dragoman.Run[handle, "Waterlily dragomanWaterlilyFile1.tioga dragomanWaterlilyFile2.tioga"]; rc.print[rc, handle.tsOut, "Real cache"]; mc.print[mc, handle.tsOut, "Map cache"]; Dragoman.End[handle]; END; BEGIN rc, mc: CacheModels.Cache; handle: Dragoman.Handle _ Dragoman.Start[backingFile: Rope.Cat["SimWaterlily.128.1.ts"], instr: 1, data: 1]; rc _ DirectMapCache.NewCache[lines: 512, quadsPerLine: 8]; -- real cache mc _ AssociativeCache.NewCache[lines: 256, quadsPerLine: 4, wordsPerQuad: 1]; -- map cache Dragoman.SetInstructionCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 128, wordsPerQuad: 4, quadsPerLine: 1, lru: FALSE, realCache: rc, mapCache: mc]]; -- instruction cache Dragoman.SetDataCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 128, wordsPerQuad: 4, quadsPerLine: 1, lru: FALSE, realCache: rc, mapCache: mc]]; -- data cache MarkWaterlilyGFIs[handle]; Dragoman.Run[handle, "Waterlily dragomanWaterlilyFile1.tioga dragomanWaterlilyFile2.tioga"]; rc.print[rc, handle.tsOut, "Real cache"]; mc.print[mc, handle.tsOut, "Map cache"]; Dragoman.End[handle]; END; BEGIN rc, mc: CacheModels.Cache; handle: Dragoman.Handle _ Dragoman.Start[backingFile: Rope.Cat["SimWaterlily.50.2.ts"], instr: 1, data: 1]; rc _ DirectMapCache.NewCache[lines: 512, quadsPerLine: 8]; -- real cache mc _ AssociativeCache.NewCache[lines: 256, quadsPerLine: 4, wordsPerQuad: 1]; -- map cache Dragoman.SetInstructionCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, wordsPerQuad: 4, quadsPerLine: 2, lru: FALSE, realCache: rc, mapCache: mc]]; -- instruction cache Dragoman.SetDataCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, wordsPerQuad: 4, quadsPerLine: 2, lru: FALSE, realCache: rc, mapCache: mc]]; -- data cache MarkWaterlilyGFIs[handle]; Dragoman.Run[handle, "Waterlily dragomanWaterlilyFile1.tioga dragomanWaterlilyFile2.tioga"]; rc.print[rc, handle.tsOut, "Real cache"]; mc.print[mc, handle.tsOut, "Map cache"]; Dragoman.End[handle]; END; BEGIN rc, mc: CacheModels.Cache; handle: Dragoman.Handle _ Dragoman.Start[backingFile: Rope.Cat["SimWaterlily.100.2.ts"], instr: 1, data: 1]; rc _ DirectMapCache.NewCache[lines: 512, quadsPerLine: 8]; -- real cache mc _ AssociativeCache.NewCache[lines: 256, quadsPerLine: 4, wordsPerQuad: 1]; -- map cache Dragoman.SetInstructionCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 100, wordsPerQuad: 4, quadsPerLine: 2, lru: FALSE, realCache: rc, mapCache: mc]]; -- instruction cache Dragoman.SetDataCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 100, wordsPerQuad: 4, quadsPerLine: 2, lru: FALSE, realCache: rc, mapCache: mc]]; -- data cache MarkWaterlilyGFIs[handle]; Dragoman.Run[handle, "Waterlily dragomanWaterlilyFile1.tioga dragomanWaterlilyFile2.tioga"]; rc.print[rc, handle.tsOut, "Real cache"]; mc.print[mc, handle.tsOut, "Map cache"]; Dragoman.End[handle]; END; BEGIN rc, mc: CacheModels.Cache; handle: Dragoman.Handle _ Dragoman.Start[backingFile: Rope.Cat["SimWaterlily.50.4.ts"], instr: 1, data: 1]; rc _ DirectMapCache.NewCache[lines: 512, quadsPerLine: 8]; -- real cache mc _ AssociativeCache.NewCache[lines: 256, quadsPerLine: 4, wordsPerQuad: 1]; -- map cache Dragoman.SetInstructionCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, wordsPerQuad: 4, quadsPerLine: 4, lru: FALSE, realCache: rc, mapCache: mc]]; -- instruction cache Dragoman.SetDataCache[handle: handle, number: 0, cache: AssociativeCache.NewCache[lines: 50, wordsPerQuad: 4, quadsPerLine: 4, lru: FALSE, realCache: rc, mapCache: mc]]; -- data cache MarkWaterlilyGFIs[handle]; Dragoman.Run[handle, "Waterlily dragomanWaterlilyFile1.tioga dragomanWaterlilyFile2.tioga"] ; rc.print[rc, handle.tsOut, "Real cache"]; mc.print[mc, handle.tsOut, "Map cache"]; Dragoman.End[handle]; END; }; Commander.Register["DragomanWaterlilyRunsGo", DragomanWaterlilyRunsGo, "Starts a series of runs of Dragoman simulating Waterlily"]; END. ŽDragomanWaterlilyRuns.mesa Created by Pradeep Sindhu, October 20, 1985 0:11:19 am PDT Pradeep Sindhu October 22, 1985 2:18:08 am PDT ΚF˜code– "Cedar" stylešœ™K™:K™.—šΟk ˜ KšœR˜R—K™šœœœ˜%Kšœ<˜CKšœ ˜Kš˜š Οn œœœœœ˜*Kš œœœœœ˜7—K˜šžœœ˜5Jšœq˜qJšœc˜cJ˜—K˜K˜K˜šΟbœ˜2š˜K˜Kšœl˜lKšœ;Οc ˜HJšœN  ˜ZJšœŒœ! ˜ΖJšœ…œ!  ˜ΈJ˜Kšœ˜Kšœ\˜\Kšœ)˜)Kšœ(˜(Kšœ˜Kšœ˜—K˜š˜K˜Kšœl˜lKšœ;  ˜HJšœN  ˜ZJšœŒœ! ˜ΖJšœ…œ!  ˜ΈJ˜Kšœ˜Kšœ\˜\Kšœ)˜)Kšœ(˜(Kšœ˜Kšœ˜—K˜š˜K˜Kšœk˜kKšœ;  ˜HJšœN  ˜ZJšœ‹œ! ˜ΕJšœ„œ!  ˜·J˜Kšœ˜Kšœ\˜\Kšœ)˜)Kšœ(˜(Kšœ˜Kšœ˜—K˜š˜K˜Kšœl˜lKšœ;  ˜HJšœN  ˜ZJšœŒœ! ˜ΖJšœ…œ!  ˜ΈJ˜Kšœ˜Kšœ\˜\Kšœ)˜)Kšœ(˜(Kšœ˜Kšœ˜—K˜š˜K˜Kšœk˜kKšœ;  ˜HJšœN  ˜ZJšœ‹œ! ˜ΕJšœ„œ!  ˜·J˜Kšœ˜Kšœ]˜]Kšœ)˜)Kšœ(˜(Kšœ˜Kšœ˜—K˜Kšœ˜—K˜Kšœƒ˜ƒKšœ˜—K˜—…—θ