The Open Automation and Control Systems Journal

2015, 7 : 2176-2183
Published online 2015 October 30. DOI: 10.2174/1874444301507012176
Publisher ID: TOAUTOCJ-7-2176

IL Optimization: Detecting and Eliminating Redundant Eflags by Flag Relevant Chain

Xue Lei , Wenqing Fan , Wei Huang , Yixian Yang and Zhongxian Li
Beijing University of Posts and Telecommunications, Beijing, 100876, China.

ABSTRACT

In this paper, we proposed a systematic approach for automatically detecting and elimination redundant Eflags to optimize intermediate language (IL). We analyzed a broad spectrum of different IL and found that a number of IL expose all side effects explicitly by default and that not all the Eflags are relevant with subsequent analysis. Therefore, we proposed a unified approach, invertible analysis, to reduce the volume of IL. Our approach does not rely on any concrete IL, and thus can identify redundant Eflags in the IL. Moreover, we devised a method using flag relevant chain dependency analysis to remove redundant Eflags and shrink the IL. We developed a prototype, and conducted extensive experiments using representative samples from various categories. We demonstrated that our approach could diminish the volume of Vine IL obviously, and provide accurate representation about the assembly code.

Keywords:

Intermediate language, Redundant Eflags, Invertible analysis, IL optimization..