Comparison checking: An approach to avoid debugging of optimized code

19Citations
Citations of this article
7Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We present a novel approach to avoid the debugging of optimized code through comparison checking. In the technique presented, both the unoptimized and optimized versions of an application program are executed, and computed values are compared to ensure the behaviors of the two versions are the same under the given input. If the values are different, the comparison checker displays where in the application program the differences occurred and what optimizations were involved. The user can utilize this information and a conventional debugger to determine if an error is in the unoptimized code. If the error is in the optimized code, the user can turn off those offending optimizations and leave the other optimizations in place. We implemented our comparison checking scheme, which executes the unoptimized and optimized versions of C programs, and ran experiments that demonstrate the approach is effective and practical. © Springer-Verlag Berlin Heidelberg 1999.

Cite

CITATION STYLE

APA

Jaramillo, C., Gupta, R., & Soffa, M. L. (1999). Comparison checking: An approach to avoid debugging of optimized code. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 1687 LNCS, pp. 268–284). Springer Verlag. https://doi.org/10.1007/3-540-48166-4_17

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free