This paper proposes the method of optimizing the pcode, which is the intermediate language of a artificial stificial stack machine, generated by PASCAL comiler. The rearrangement and redundant code elimination of a given arithmetic expression is appli...
This paper proposes the method of optimizing the pcode, which is the intermediate language of a artificial stificial stack machine, generated by PASCAL comiler. The rearrangement and redundant code elimination of a given arithmetic expression is applied on the tree of this expression. The optimizing algorithm and optimization process is presented.