New framework for debugging globally optimized code

Le Chun Wu, Rajiv Mirani, Harish Patil, Bruce Olsen, Wen-Mei W Hwu

Research output: Contribution to conferencePaper

Abstract

With an increasing number of executable binaries generated by optimizing compilers today, providing a clear and correct source-level debugger for programmers to debug optimized code has become a necessity. In this paper, a new framework for debugging globally optimized code is proposed. This framework consists of a new code location mapping scheme, a data location tracking scheme, and an emulation-based forward recovery model. By taking over the control early and emulating instructions selectively, the debugger can preserve and gather the required program state for the recovery of expected variable values at source breakpoints. The framework has been prototyped in the IMPACT compiler and GDB-4.16. Preliminary experiments conducted on several SPEC95 integer programs have yielded encouraging results. The extra time needed for the debugger to calculate the limits of the emulated region and to emulate instructions is hardly noticeable, while the increase in executable file size due to the extra debug information is on average 76% of that of the executable file with no debug information.

Original languageEnglish (US)
Pages181-191
Number of pages11
StatePublished - Jan 1 1999
EventProceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99 - Atlanta, GA, USA
Duration: May 1 1999May 4 1999

Other

OtherProceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99
CityAtlanta, GA, USA
Period5/1/995/4/99

Fingerprint

Recovery
Experiments

ASJC Scopus subject areas

  • Software

Cite this

Wu, L. C., Mirani, R., Patil, H., Olsen, B., & Hwu, W-M. W. (1999). New framework for debugging globally optimized code. 181-191. Paper presented at Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99, Atlanta, GA, USA, .

New framework for debugging globally optimized code. / Wu, Le Chun; Mirani, Rajiv; Patil, Harish; Olsen, Bruce; Hwu, Wen-Mei W.

1999. 181-191 Paper presented at Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99, Atlanta, GA, USA, .

Research output: Contribution to conferencePaper

Wu, LC, Mirani, R, Patil, H, Olsen, B & Hwu, W-MW 1999, 'New framework for debugging globally optimized code' Paper presented at Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99, Atlanta, GA, USA, 5/1/99 - 5/4/99, pp. 181-191.
Wu LC, Mirani R, Patil H, Olsen B, Hwu W-MW. New framework for debugging globally optimized code. 1999. Paper presented at Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99, Atlanta, GA, USA, .
Wu, Le Chun ; Mirani, Rajiv ; Patil, Harish ; Olsen, Bruce ; Hwu, Wen-Mei W. / New framework for debugging globally optimized code. Paper presented at Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99, Atlanta, GA, USA, .11 p.
@conference{7db5bf137e9c4a598293756acb72db5b,
title = "New framework for debugging globally optimized code",
abstract = "With an increasing number of executable binaries generated by optimizing compilers today, providing a clear and correct source-level debugger for programmers to debug optimized code has become a necessity. In this paper, a new framework for debugging globally optimized code is proposed. This framework consists of a new code location mapping scheme, a data location tracking scheme, and an emulation-based forward recovery model. By taking over the control early and emulating instructions selectively, the debugger can preserve and gather the required program state for the recovery of expected variable values at source breakpoints. The framework has been prototyped in the IMPACT compiler and GDB-4.16. Preliminary experiments conducted on several SPEC95 integer programs have yielded encouraging results. The extra time needed for the debugger to calculate the limits of the emulated region and to emulate instructions is hardly noticeable, while the increase in executable file size due to the extra debug information is on average 76{\%} of that of the executable file with no debug information.",
author = "Wu, {Le Chun} and Rajiv Mirani and Harish Patil and Bruce Olsen and Hwu, {Wen-Mei W}",
year = "1999",
month = "1",
day = "1",
language = "English (US)",
pages = "181--191",
note = "Proceedings of the Annual ACM SIGPLAN '99 Conference on Programming Language Design and Implementation (PLDI), FCRC'99 ; Conference date: 01-05-1999 Through 04-05-1999",

}

TY - CONF

T1 - New framework for debugging globally optimized code

AU - Wu, Le Chun

AU - Mirani, Rajiv

AU - Patil, Harish

AU - Olsen, Bruce

AU - Hwu, Wen-Mei W

PY - 1999/1/1

Y1 - 1999/1/1

N2 - With an increasing number of executable binaries generated by optimizing compilers today, providing a clear and correct source-level debugger for programmers to debug optimized code has become a necessity. In this paper, a new framework for debugging globally optimized code is proposed. This framework consists of a new code location mapping scheme, a data location tracking scheme, and an emulation-based forward recovery model. By taking over the control early and emulating instructions selectively, the debugger can preserve and gather the required program state for the recovery of expected variable values at source breakpoints. The framework has been prototyped in the IMPACT compiler and GDB-4.16. Preliminary experiments conducted on several SPEC95 integer programs have yielded encouraging results. The extra time needed for the debugger to calculate the limits of the emulated region and to emulate instructions is hardly noticeable, while the increase in executable file size due to the extra debug information is on average 76% of that of the executable file with no debug information.

AB - With an increasing number of executable binaries generated by optimizing compilers today, providing a clear and correct source-level debugger for programmers to debug optimized code has become a necessity. In this paper, a new framework for debugging globally optimized code is proposed. This framework consists of a new code location mapping scheme, a data location tracking scheme, and an emulation-based forward recovery model. By taking over the control early and emulating instructions selectively, the debugger can preserve and gather the required program state for the recovery of expected variable values at source breakpoints. The framework has been prototyped in the IMPACT compiler and GDB-4.16. Preliminary experiments conducted on several SPEC95 integer programs have yielded encouraging results. The extra time needed for the debugger to calculate the limits of the emulated region and to emulate instructions is hardly noticeable, while the increase in executable file size due to the extra debug information is on average 76% of that of the executable file with no debug information.

UR - http://www.scopus.com/inward/record.url?scp=0032681552&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=0032681552&partnerID=8YFLogxK

M3 - Paper

AN - SCOPUS:0032681552

SP - 181

EP - 191

ER -