Design of translator for stack-based codes from 3-address codes in CTOC
Young Kook Kim, Sun-Moon Jo, Weon-Hee Yoo · 2005
We Present CTOC, a framework for optimizing Java bytecode. The framework supports two intermediate representations for representing Java bytecode: CTOC-B, a streamlined representation of bytecode which is simple to manipulate; CTOC-T, a typed 3-address intermediate representation suitable for optimization. We translate CTOC-T back to CTOC-B that translates a needless code. A needless code is redundant store/load statement and partial redundancy. We study the technique necessary to effectively translate CTOC-T back to CTOC-B without losing performance. This paper eliminates needless code.