A software instruction counter
John Mellor‐Crummey, T.J. LeBlanc · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · 1989
Although several recent papers have proposed architectural support for program debugging and profiling, most processors do not yet provide even basic facilities, such as an instruction counter. As a result, system developers have been forced to invent software solutions. This paper describes our implementation of a software instruction counter for program debugging. We show that an instruction counter can be reasonably implemented in software, often with less than 10% execution overhead. Our experience suggests that a hardware instruction counter is not necessary for a practical implementation of watch-points and reverse execution, however it will make program instrumentation much easier for the system developer.
Cited by 66 works. doi:10.1145/70082.68189 Open-access PDF
Authors
References
- Gprof
- Debugging Parallel Programs with Instant Replay
- Some requirements for architectural support of software debugging
- The Mahler experience: using an intermediate language as the machine description
- Supporting reverse execution for parallel programs
- Dhrystone benchmark: rationale for version 2 and measurement rules
- An integrated approach to parallel program debugging and performance analysis onlarge-scale multiprocessors
- Cheap hardware support for software debugging and profiling
- A distributed debugger for Amoeba
- Guidelines for creating a debuggable processor