Automatic, template-based run-time specialization: Implementation and experimental study

被引:23
|
作者
Noel, F [1 ]
Hornof, L [1 ]
Consel, C [1 ]
Lawall, JL [1 ]
机构
[1] Inst Rech Informat & Syst Aleatoires, F-35042 Rennes, France
关键词
D O I
10.1109/ICCL.1998.674164
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Specializing programs with respect to run-time valves has been shown to drastically improve code performance on realistic programs ranging from operating systems to graphics. Recently, various approaches to specializing code at run-time have been proposed. However, these approaches still suffer from shortcomings that limit their applicability: they are manual, too expensive, or require programs to be written in a dedicated language. We solve these problems by introducing new techniques to implement run-time specialization. The key to our approach is the use of code templates. Templates are automatically generated from ordinary programs and are optimized before run time, allowing high-quality code to be quickly generated at ran time. Experimental results obtained on scientific and graphics code indicate that our approach is highly effective. Little run-time overhead is introduced, since code generation primarily consists of copying instructions. Run-time specialized programs run vp to 10 times faster, and are nearly as fast as fully optimized programs (80% on average). The combination of lour run-time overhead and high code quality enables specialization to be amortized in as few as 3 runs. Although this approach is highly effective, its implementation is relatively simple since it exploits existing partial evaluation and compiler technologies.
引用
收藏
页码:132 / 142
页数:11
相关论文
共 50 条
  • [1] Compiling for template-based run-time code generation
    Smith, F
    Grossman, D
    Morrisett, G
    Hornof, L
    Jim, T
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2003, 13 : 677 - 708
  • [2] Efficient incremental run-time specialization for free
    Marlet, R
    Consel, C
    Boinot, P
    [J]. ACM SIGPLAN NOTICES, 1999, 34 (05) : 281 - 292
  • [3] A method for fast hardware specialization at run-time
    Bruneel, Karel
    Bertels, Peter
    Stroobandt, Dirk
    [J]. 2007 INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE LOGIC AND APPLICATIONS, PROCEEDINGS, VOLS 1 AND 2, 2007, : 35 - 40
  • [4] Specialization of Run-time Configuration Space at Compile-time: An Exploratory Study
    Ternava, Xhevahire
    Acher, Mathieu
    Combemale, Benoit
    [J]. 38TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2023, 2023, : 1459 - 1468
  • [5] A portable approach to dynamic optimization in run-time specialization
    Masuhara, H
    Yonezawa, A
    [J]. NEW GENERATION COMPUTING, 2002, 20 (01) : 101 - 124
  • [6] IMPLEMENTATION OF AN ADA RUN-TIME ENVIRONMENT
    FISCHER, H
    SIBLEY, EH
    [J]. AFIPS CONFERENCE PROCEEDINGS, 1983, 52 : 47 - +
  • [7] A portable approach to dynamic optimization in run-time specialization
    Hidehiko Masuhara
    Akinori Yonezawa
    [J]. New Generation Computing, 2002, 20 : 101 - 124
  • [8] Annotation-directed run-time specialization in C
    Grant, B
    Mock, M
    Philipose, M
    Chambers, C
    Eggers, SJ
    [J]. ACM SIGPLAN NOTICES, 1997, 32 (12) : 163 - 178
  • [9] THE IMPLEMENTATION OF RUN-TIME DIAGNOSTICS IN PASCAL
    FISCHER, CN
    LEBLANC, RJ
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1980, 6 (04) : 313 - 319
  • [10] AUTOMATIC GENERATION OF RUN-TIME PARAMETERIZABLE CONFIGURATIONS
    Bruneel, Karel
    Stroobandt, Dirk
    [J]. 2008 INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE AND LOGIC APPLICATIONS, VOLS 1 AND 2, 2008, : 360 - 365