3 5i, ki, vi, qi \- instruction simulators
38 simulates the execution of a MIPS binary in
40 It has two main uses: as
41 a debugger and as a statistics gatherer.
42 Programs running under
44 execute about two hundred times
45 slower than normal\(embut faster than
54 but interpret ARM, SPARC, and PowerPC binaries.
55 The following discussion refers to
57 but applies to the others
61 will simulate the execution of a named
63 It will also make a copy of an existing process with process id
65 and simulate its continuation.
69 offers more complete information
72 Tracing can be performed at the level of instructions,
73 system calls, or function calls.
75 allows breakpoints to be triggered when specified addresses
76 in memory are accessed.
77 A report of instruction counts,
78 load delay fills and distribution is produced for
81 simulates the CPU's caches and MMU
82 to assist the optimization of compilers and programs.
84 The command interface mirrors the interface to
88 for a detailed description.
89 Data formats and addressing are compatible with
100 offers both Plan 9 and Sun SPARC formats.
102 Several extra commands allow
103 extended tracing and printing of statistics:
108 command controls tracing. Zero cancels all tracing
113 Enable instruction tracing
119 Enable system call tracing
125 command prints statistics accumulated by
126 all code run in this session.
130 Print instruction counts and frequency.
137 only) Print TLB and cache statistics.
140 Print memory reference, working set and size statistics.
145 allows breakpoints to be set on any memory location.
146 These breakpoints monitor when a location is
147 accessed, read, written, or equals a certain value.
148 For equality the compared value is the
152 supplied to the command.
160 The code generated by
162 is well supported, but some unusual instructions are unimplemented.
163 Some Plan 9 system calls such as
165 cause simulated traps.
166 The floating point simulation makes assumptions about the interpreting
167 machine's floating point support. The floating point conversions performed
170 may cause a loss of precision.