C++指针机制与源文件关联关系的可视化研究
作者:

Pointer Mechanism and Source Files Association’s Visualization in C++
Author:
  • 摘要
  • | |
  • 访问统计
  • |
  • 参考文献 [9]
  • |
  • 相似文献 [20]
  • | | |
  • 文章评论
    摘要:

    研究了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.

    参考文献
    1 Lakos J. Large Scale C++ Software Design.北京:中国电力出 版社,2003.77-84.
    2 胡磊.基于模板的可视化软件理解研究与实现.武汉:武汉 大学,2004.
    3 Harbison III SP, Steele Jr GL.C 语言参考手册.北京:机械工 业出版社,2003.40-45.
    4 CRegKey.[2011-8-31].http://msdn.microsoft.com/zh-cn/library/ xka57 xy4 (v=VS.80).aspx..
    5 Mayers.STL 高效编程.北京:机械工业出版社,2006.64-80.
    6 Booch G, Rumbaug J, Jacobson I.UML 用户指南.北京:机械 工业出版社,2006.164-170.
    7 Petzold C.方敏等译. windows 程序设计.北京:清华大学出版 社,2010.240-245.
    8 Hind M, Pioli A. Which Pointer Analysis Should I Use. ACM SIG-SOFT Software Engineering Notes. 2000, 25(5):113-11.
    9 李莹,张琴燕.程序理解.计算机应用研究,2001,18(6):40-41.
    引证文献
    网友评论
    网友评论
    分享到微博
    发 布
引用本文

古辉,乔凯旋. C++指针机制与源文件关联关系的可视化研究.计算机系统应用,2012,21(7):236-239,253

复制
分享
文章指标
  • 点击次数:1829
  • 下载次数: 3343
  • HTML阅读次数: 0
  • 引用次数: 0
历史
  • 收稿日期:2011-11-13
  • 最后修改日期:2011-12-02
文章二维码
您是第11281869位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号