首页 | 本学科首页   官方微博 | 高级检索  
     

一种源源编译控制流优化方法
引用本文:王旭昊,唐甜. 一种源源编译控制流优化方法[J]. 航空计算技术, 2012, 0(3): 98-103
作者姓名:王旭昊  唐甜
作者单位:中航工业西安航空计算技术研究所,陕西西安710068
基金项目:国家核高基项目资助(2009ZX01041-003-003);航空科学基金项目资助(20101981015,2010ZC31002)
摘    要:源源编译器是一种对源代码进行重构和分析的工具,在程序设计语言研究领域有着广泛的应用。给出了一种源源编译的控制流结构优化方法。方法结合编译结构分析,对于可化简合并的典型控制流结构,进行结构分析;经数据流分析满足优化条件后,实现基本块的合并。优化后程序的结构更加清晰,可读性更好。方法在SUIF编译器上实现,经使用Olden基准测试程序试验,有效提高了源代码的翻译质量。

关 键 词:源源编译  结构分析  控制流优化  数据流分析

A Optimization Method of Source- to- Source Compiler Control Flow
WANG Xu- hao,TANG Tian. A Optimization Method of Source- to- Source Compiler Control Flow[J]. Aeronautical Computer Technique, 2012, 0(3): 98-103
Authors:WANG Xu- hao  TANG Tian
Affiliation:( Xi 'an Aeronautics Computing Technique Research Institute ,A VIC ,Xi 'an 710068, China)
Abstract:Source- to- source compiler is a tool of re- constructing and analyzing source code, and is wide- ly used in the area of programming language research. In this paper, we design a source- to- source compiler control flow optimization method based on compiler structural analysis, which is used to analyze the structure schemas that can be merged and simplified. Basic blocks are merged if optimization conditions are satisfied after data flow analysis. The optimized program has clearer structure and better programming style. We implement the method as a new pass of SUIF compiler, and Olden benchmarks are used in the test. The experimental results show that our method can effectively improve the translating quality of source code.
Keywords:source- to- source compiler  structural analysis  control flow optimization  data flow analysis
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号