An Effective Automated Approach to Specialization of Code

  • Authors:
  • Minhaj Ahmad Khan;H. -P. Charles;D. Barthou

  • Affiliations:
  • University of Versailles-Saint-Quentin-en-Yvelines, France;University of Versailles-Saint-Quentin-en-Yvelines, France;University of Versailles-Saint-Quentin-en-Yvelines, France

  • Venue:
  • Languages and Compilers for Parallel Computing
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Application performance is heavily dependent on the compiler optimizations. Modern compilers rely largely on the information made available to them at the time of compilation. In this regard, specializing the code according to input values is an effective way to communicate necessary information to the compiler.However, the static specialization suffers from possible code explosion and dynamic specialization requires runtime compilation activities that may degrade the overall performance of the application.This article proposes an automated approach for specializing code that is able to address both the problems of code size increase and the overhead of runtime activities. We first obtain optimized code through specialization performed at static compile time and then generate a template that can work for a large set of values through runtime specialization.Our experiments show significant improvement for different SPECbenchmarks on Itanium-II(IA-64) and Pentium-IV processors using iccand gcccompilers.