PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 1, 1994Software Practice and Experience156 citationsOpen Access

Rewriting executable files to measure program behavior

View Full Paper
JLJames R. LarusTBThomas Ball

Key Points

Key points are not available for this paper at this time.

Abstract

Abstract Inserting instrumentation code in a program is an effective technique for detecting, recording, and measuring many aspects of a program's performance. Instrumentation code can be added at any stage of the compilation process by specially‐modified system tools such as a compiler or linker or by new tools from a measurement system. For several reasons, adding instrumentation code after the compilation process—by rewriting the executable file—presents fewer complications and leads to more complete measurements. This paper describes the difficulties in adding code to executable files that arose in developing the profiling and tracing tools qp and qpt. The techniques used by these tools to instrument programs on MIPS and SPARC processors are applicable in other instrumentation systems running on many processors and operating systems. In addition, many difficulties could have been avoided with minor changes to compilers and executable file formats. These changes would simplify this approach to measuring program performance and make it more generally useful.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Larus et al. (1994) studied this question.

synapsesocial.com/papers/6a22244a965ac14388495480https://doi.org/10.1002/spe.4380240204
Ask AI
Helpful
Bookmark
Share
View Full Paper