• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (2): 67-72.

• 论文 • Previous Articles     Next Articles

Research on a MYGCCBased Algorithmfor Checking Programming Rules

Li Feng,WEN Yanjun,QI Zhichang,LU Saiyin   

  1. (School of Computer Science,National University of Defense Technology,Changsha  410073,China)
  • Received:2010-01-29 Revised:2010-04-15 Online:2012-02-25 Published:2012-02-25

Abstract:

MYGCC is a tool for checking programming rules, and its current checking algorithm has defects. That is, it can not show the whole control flow paths that violate the checking rules. To eliminate the defects, this paper presents an improved algorithm to the original one of MYGCC. Experiment shows that the algorithm is effective. This improvement can help users to find the position of bugs more accurately, and benefit bug fixing.

Key words: programming rule checking;static analysis;extensible compiler