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

J4 ›› 2012, Vol. 34 ›› Issue (2): 73-77.

• 论文 • Previous Articles     Next Articles

Research on the Expanding Intermediate Code for Control Flow Checking Based on GCC

HE Tao1,ZHOU Huiping2,JIA Lili2,WANG Fahong1   

  1. (1.School of Further Contin Education,National University of Defense Technology,Changsha  410073;2.School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2010-03-24 Revised:2010-06-10 Online:2012-02-25 Published:2012-02-25

Abstract:

The paper introduces  for CFCSS, briefly analyzes the running routine of the GCC compiler, gives the concrete methods for how to extend the CFCSS algorithm in the GCC compiler and then compiles a single C language program in the extended GCC. Finally, we perform the CFCSS algorithm’s valid verification by fault injection experiments. The experiment shows the new program can check the error of the control flow when it runs, which is compiled by the GCC compiler after extending the CFCSS algorithm. The above conclusion gives great support to positioning and recovering the faults in the next step and lays a good foundation for solving the computer running faults in the space.

Key words: GCC;intermediate code;optimization;control flow error detection algorithm