Abstract

Eclipse compiler for Java (ECJ) is open source incremented compiler. We reform features of ECJ, related to optimization technique called as dead code detection and elimination. ECJ identifies the dead code. We are extending this compiler to eliminate the dead code. In this paper we are describing the structure of ECJ. For dead code elimination approach we have used Single Static Assignment (SSA) strategy. After applying definition- use (DU) chain on SSA, we detect dead code and eliminate it. In this paper we are describing two algorithms: 1) To convert Java source code into SSA. 2) To eliminate dead code. Hence by implementing dead code elimination in ECJ, we are utilizing space and execution time of program which leads to improve efficiency of compiler.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call