Download The Cache Visualisation Tool

Transcript
for more information on the PDC) and numerous other uses of the extra entries can be thought of.
3.5.5 Sub-Option Load Source-Trace
To benet from both the advantages of Programs and those of Traces, a third kind of input was thought of.
This third kind of input is called a source-trace, which is a memory trace, with predened extra information.
These extra entries are chosen to accommodate to the benets of programs.
When this option is chosen, a le browser is popped up (like the one in gure 3.19, with this change that
the lter is automatically set to "*.str", the usual extension for loop traces), and the user is asked to chose
a certain lename, the exact workings of the le browsers used in the CVT are discussed in section 3.5.1.
When the "Ok" button is pressed, the CVT will load (a part of) a source-trace into an internal buer. As
with (memory) traces, the source-traces can be quite large, so they are split up in several parts of 1000 lines
and every time one part has been completed, the next (if applicable) is loaded in automatically).
The format of a source-trace.
Source-traces are les that consist of a number of lines that are in the following format : "integer integer
long integer integer string" (source-traces can be made by executing the c command fprintf(..,"The rst
integer stands for the statement identier, the next for the array reference identier. The long integer is
the address of the referenced data, then an integer indicates a read or a write (1 for a write, 0 for a read),
another one for the Base Address of the array. The string indicates the Name of the array (but this could
also be a number, the CVT will not mind). All these values are separated by spaces and every line is ended
by a newline command.
3.6
Menu-Option
Colors
Figure 3.21: The menu option Colors.
This section describes the sub-option of the menu-option Colors, which are all, in same way, related to colors
or coloring within the CVT. In gure 3.21. The rst three options concern the way cache lines are colored in
the cache window. Then there is an option to change to either the Black and White or the Grey-scale/Color
version of the CVT. The last option is there to change the color palette the CVT is using. Before we start
to exactly describe the rst two options ("Show/Change Array Colors" and "Show/Change RefID Colors"),
we like to make some common remarks on the coloring of cache lines during either program or source-trace
execution. During execution of these two kinds of input, a cache line can be either colored by arrayname
(this means every array has a distinct color, unless changed dierently by the user) or by array reference ID
(this means, every unique combination of (Statement ID, Array Reference ID) has a dierent color, unless
changed by the user). Switching between these two coloring methods is done by using the button "Arr/Ref",
as described in section 3.3.8.
28