用可视化重塑反汇编接口:结合指令追踪与控制流的 DisViz
Reimagining Disassembly Interfaces with Visualization: Combining Instruction Tracing and Control Flow with DisViz
AI总结:
本文提出 DisViz 可视化工具,融合执行顺序、控制流、基本块循环布局、迷你地图及源代码动态链接,帮助开发者理解和浏览大规模反汇编代码。
摘要:
在效率至关重要的应用中,开发人员可能会检查其编译后的二进制文件,试图理解编译器如何转换其源代码,以及这种转换可能带来哪些性能影响。由于反汇编出的二进制指令数量庞大,且这些指令与源代码之间存在多对多映射,该分析颇具挑战。随着源代码规模增大,编译器拥有更多自由度将二进制指令映射并分散到整个反汇编空间,这些问题会进一步恶化。传统反汇编接口通常将指令显示为非结构化列表,或牺牲执行顺序。我们设计了一种新型反汇编代码可视化接口,将执行顺序与控制流结构相结合,使分析人员既能追踪代码,又能识别计算中熟悉的方面。该方法的核心是一种新颖的指令布局:将指令分组为基本块,并以直观方式呈现循环结构。在此反汇编表示之上,我们加入了独特的基于块的迷你地图,利用该布局展示数千条反汇编指令中的上下文。最后,我们将反汇编可视化嵌入基于 Web 的工具 DisViz,该工具在整个应用范围内增加了与源代码的动态链接。DisViz 是遵循设计研究方法论、与程序分析专家合作开发的,并通过来自四个机构的十名参与者参与的评估会话得到验证。参与者成功完成了评估任务,对编译器优化作出假设,并指出了新型反汇编视图的实用性。评估表明,这种新的集成视图有助于应用开发人员理解和浏览反汇编代码。
英文摘要:
In applications where efficiency is critical, developers may examine their compiled binaries, seeking to understand how the compiler transformed their source code and what performance implications that transformation may have. This analysis is challenging due to the vast number of disassembled binary instructions and the many-to-many mappings between them and the source code. These problems are exacerbated as source code size increases, giving the compiler more freedom to map and disperse binary instructions across the disassembly space. Interfaces for disassembly typically display instructions as an unstructured listing or sacrifice the order of execution. We design a new visual interface for disassembly code that combines execution order with control flow structure, enabling analysts to both trace through code and identify familiar aspects of the computation. Central to our approach is a novel layout of instructions grouped into basic blocks that displays a looping structure in an intuitive way. We add to this disassembly representation a unique block-based mini-map that leverages our layout and shows context across thousands of disassembly instructions. Finally, we embed our disassembly visualization in a web-based tool, DisViz, which adds dynamic linking with source code across the entire application. DizViz was developed in collaboration with program analysis experts following design study methodology and was validated through evaluation sessions with ten participants from four institutions. Participants successfully completed the evaluation tasks, hypothesized about compiler optimizations, and noted the utility of our new disassembly view. Our evaluation suggests that our new integrated view helps application developers in understanding and navigating disassembly code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。