计算机科学 ›› 2013, Vol. 40 ›› Issue (1): 157-160.

• 软件与数据库技术 • 上一篇    下一篇

基于Open64的Fortran90程序源源翻译

高 伟,赵荣彩,姚 远,魏 帅   

  1. (解放军信息工程大学信息工程学院 郑州450002)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Source to Source Translation of Fortran90 Based on Open64

  • Online:2018-11-16 Published:2018-11-16

摘要: 源源翻译是一种很有用的编译基础设施,它将高级语言程序转换为语义等价的可再编译的高级语言程序。目前Open64最新版本5.0中的Fortran90源源翻译还不是很完善,其中有两个突出问题:一是不支持动态数组的翻译;二是含有复杂数据结构的程序激进优化后,中间表示出现伪寄存器,源源翻译出错。在研究Open64的翻译流程 和中间表示后,应用信息保存的翻译机制解决了动态数组的源源翻译问题和因为中间表示含有伪寄存器而造成的源源翻译错误的问题。测试结果表明,该方法增强了Open64的源源翻译处理能力。

关键词: Open64,源源翻译,动态数组,伪寄存器,Fortran90

Abstract: Source to source translation is a very useful part in modern advanced compiler. It translates one programing language to another, which is equal in semantic and can be compiled again. Currently, source to source translation model of the latest Open64 version 5.0 is not consummate. It has to deal with the following two problems in source to source translation model. One problem is now it can't support dynamic array translation in Fortran90, the other problem is intermediate representation contains pseudo-register after aggressive optimizing. After translation process and intermediate representation were researched, information preservation mechanism was introduced to solve the translation problem of dynamic array and pseudo-register. Test results prove that the method can greatly improve the robustness of the source to source translation in Open64.

Key words: Open64, Source to source translation, Dynamic array, Pseudo-register, Fortran90

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!