A code optimization algorithm by the loop fusion on RISC complilers

RISC 컴파일러 상에서의 루프 합치기에 의한 코드 최적화 알고리즘

  • 이철원 (두원공업전문대학 전자과) ;
  • 임인칠 (한양대학교 전자공학과)
  • Published : 1996.04.01

Abstract

A loop structure optimization algorithm is proposed for generting a set of efficient codes for loop structure in order to optimize RISC compiler codes. Since there are so many loop structure in the program, most of the execution time is used to process looping codes. Thus, reduction of loop instructions is more effective than optimizing codes outside the loop. The proposed algorithm presents a method to combine several different loops into a simple loop. Therefore, rather than executing each loop independently, loops in the program are serached, analyzed, and finally created some relative informtion such as dependency and range. In doing so, the loops in the program can efficiently be recombined and restructured. As a result, the overall execution time for the program of the sequential programming language is reduced.

Keywords