本文已被:浏览 1756次 下载 3209次
Received:November 13, 2011 Revised:December 02, 2011
Received:November 13, 2011 Revised:December 02, 2011
中文摘要: 研究了C++中的指针机制、以及指针类型对象(变量)在多个源程序代码文件中关联关系。基于信息提取和结果整理,计算机可视化实现和表示C++中的指针机制和多源程序代码文件的关联关系。研究了抽取结果的存储机制和基于该机制的自动排序源文件引用关系的方法,最后提出了一种手工调整图元布局的算法,作为自动排序算法的补充。对实际代码分析的结果表明该方法利于程序分析并支持对源代码的辅助理解。
Abstract:Source code as object for research in this paper, mechanism of pointer and relation of association about pointer type object (variable) within multiple source files is studied. Based on the extraction of message and packing up the results, automatically visualize the elation about source files and mechanism of pointer in C plusplus. The storage mechanism on extraction and an algorithm of automatically disposing the include-relation on files are proposed. As a supplement, an algorithm of manual adjustment for meta-graph is introduced. The actual analysis results on codes show that the research is conducive to support for program analysis and understanding of source code.
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
古辉,乔凯旋.C++指针机制与源文件关联关系的可视化研究.计算机系统应用,2012,21(7):236-239,253
GU Hui,QIAO Kai-Xuan.Pointer Mechanism and Source Files Association’s Visualization in C++.COMPUTER SYSTEMS APPLICATIONS,2012,21(7):236-239,253
古辉,乔凯旋.C++指针机制与源文件关联关系的可视化研究.计算机系统应用,2012,21(7):236-239,253
GU Hui,QIAO Kai-Xuan.Pointer Mechanism and Source Files Association’s Visualization in C++.COMPUTER SYSTEMS APPLICATIONS,2012,21(7):236-239,253