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

J4 ›› 2011, Vol. 33 ›› Issue (8): 89-94.

• 论文 • 上一篇    下一篇

基于GCC的容错编译器的研究与实现

王发鸿1,周会平2,贾丽丽2,何涛2   

  1. (1.武警8670部队,甘肃 平凉 744000;2.国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2010-02-24 修回日期:2011-05-28 出版日期:2011-08-25 发布日期:2011-08-25
  • 作者简介:王发鸿(1981),男,甘肃兰州人,硕士,研究方向为软件容错和编译技术。周会平(1972),男,湖北天门人,博士,副教授,研究方向为自然语言处理和编译技术。贾丽丽(1973),女,黑龙江密山人,博士生,讲师,研究方向为网络计算。何涛(1982),男,陕西渭南人,硕士,研究方向为软件容错和编译技术。

Research and Implementation of a Fault Tolerant Compiler Based on GCC

WANG Fahong1,ZHOU Huiping2,JIA Lili2,HE Tao2   

  1. (1.Corps 8670,Armed Police,Pingliang 744000;
    2.School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2010-02-24 Revised:2011-05-28 Online:2011-08-25 Published:2011-08-25

摘要:

在COTS微处理器上实现面向硬件故障的软件容错技术,与硬件容错技术相比,其性能、成本、功耗和灵活性上都拥有巨大的优势。其中容错编译技术通过在编译的时候自动地插入指令实现容错,实现简单、高效,不需要重写源代码,减轻了程序员的负担,有利于利用已有的大量程序,是软件容错研究中较为活跃的分支。本文以GNU开源编译器GCC为平台,结合现有容错编译算法,讨论一款初步具有容错编译能力的编译器的设计与实现。

关键词: 容错编译, GCC, 冗余计算, 软件容错

Abstract:

Compared to the performance, cost, power and flexibility with the  hardware faulttolerant technique, the Software Implemented Hardware Fault Tolerance for COTS microprocessors hava many advantages. The fault tolerant compilation technology, which compiles at the compile time by automatically inserting instructions to achieve fault tolerance, which is easytoimplement, efficient and does not need to rewrite the source code. And  it reduces the burden for the programmer, and makes the  existing programs easytouse. Currently, it is the more active branches in the software fault tolerance research. This paper takes the GNU compiler GCC as a platform, gives an approach of the design and implementation for a faulttolerant compiler which combines with the existing faulttolerant algorithms.

Key words: fault tolerant compilation;GCC;redundance computing;software fault tolerance