【24h】

OPTVIEW

机译:视点

获取原文

摘要

The task of mapping between source programs and machine code, once the code has been optimized and transformed by a compiler is often difficult. Yet there are many instances, such as debugging optimized code or attributing performance analysis data to source lines, whrn it is useful or necessary to understand at the source level what is occurring in the binary. The standard approach has been for tools to attempt to map directly from the optimized binary to the original source. Such mappings are often fragile, and sometimes inaccurate or misleading. We suggest an alternative approach. Rather than mapping directly between the original source and the binary, we create a modified version of the source program, still recognizable, but updated to reflect some of the effects of optimizations, thus facilitating mapping from the binary. We have implemented a tool, Optview, to demonstrate and test these ideas.
机译:一旦代码被编译器优化和转换,在源程序和机器代码之间进行映射的任务通常很困难。然而,仍然有许多实例,例如调试优化的代码或将性能分析数据归因于源代码行,从而有必要或有必要在源代码级别了解二进制文件中发生了什么。工具的标准方法是尝试直接从优化的二进制文件映射到原始源。这样的映射通常是脆弱的,有时是不准确的或误导的。我们建议一种替代方法。我们不是直接在原始源代码和二进制文件之间进行映射,而是创建源程序的修改版本,该版本仍然可以识别,但是会进行更新以反映优化的某些效果,从而便于从二进制文件进行映射。我们已经实现了Optview工具来演示和测试这些想法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号