A new framework for debugging globally optimized code

Author:

Wu Le-Chun1,Mirani Rajiv2,Patil Harish3,Olsen Bruce2,Hwu Wen-mei W.1

Affiliation:

1. The Coordinated Science Laboratory, University of Illinois, Urbana, IL

2. Application Delivery Laboratory, Hewlett-Packard Company, Cupertino, CA

3. Compaq Computer Corporation, Shrewsbury, MA and Application Delivery Laboratory, Hewlett-Packard Company, Cupertino, CA

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.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference17 articles.

1. P. T. Zellweger Interactive Source-Level Debugging of Optimized Programs. PhD thesis Electrical Engineering and Computer Sciences University of California Berkeley CA 94720 1984. P. T. Zellweger Interactive Source-Level Debugging of Optimized Programs. PhD thesis Electrical Engineering and Computer Sciences University of California Berkeley CA 94720 1984.

2. An interactive high-level debugger for control-flow optimized programs

3. Debugging code reorganized by a trace scheduling compiler;Gupta R.;Structured Programming,1990

4. U. Holzle C. Chambers and D. Ungax "Debugging optimized code with dynamic deoptimization " in Proceedings of the A CM SIGPLAN '92 Conference on Programming Language Design and Implementation pp. 32-43 June 1992. 10.1145/143095.143114 U. Holzle C. Chambers and D. Ungax "Debugging optimized code with dynamic deoptimization " in Proceedings of the A CM SIGPLAN '92 Conference on Programming Language Design and Implementation pp. 32-43 June 1992. 10.1145/143095.143114

5. Symbolic Debugging of Optimized Code

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Where Did My Variable Go? Poking Holes in Incomplete Debug Information;Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2;2023-01-27

2. Debug information validation for optimized code;Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation;2020-06-06

3. On-stack replacement, distilled;Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementation;2018-06-11

4. Debugging and Testing Optimizers through Comparison Checking;Electronic Notes in Theoretical Computer Science;2002-04

5. Comparison Checking: An Approach to Avoid Debugging of Optimized Code;Software Engineering — ESEC/FSE ’99;1999

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3