an optimal compiler algorithm is proposed for better utilization of registers and elimination of redundant memory operation.By building an extended call graph
the algorithm is able to saving least context during function call.The experimental results show a decrease in memory accesses by an average of 40.36% and an improvement in performance by an average of 2.99%.applications.