Implementing typed intermediate languages

被引:0
|
作者
Shao, Z [1 ]
League, C [1 ]
Monnier, S [1 ]
机构
[1] Yale Univ, Dept Comp Sci, New Haven, CT 06520 USA
关键词
D O I
10.1145/291251.289460
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Recent advances in compiler technology have demonstrated the benefits of using strongly typed intermediate languages to compile richly typed source languages (e.g., ML). A type-preserving compiler can use types to guide advanced optimizations and to help generate provably secure mobile code. Types, unfortunately, are very hard to represent and manipulate efficiently; a naive implementation can easily add exponential overhead to the compilation and execution of a program. This paper describes our experience with implementing the FLINT typed intermediate language in the SML/NJ production compiler. We observe that a type-preserving compiler will not scale to handle large types unless all of its type-preserving stages preserve the asymptotic time and space usage in representing and manipulating types. We present a series of novel techniques for achieving this property and give empirical evidence of their effectiveness.
引用
收藏
页码:313 / 323
页数:11
相关论文
共 50 条
  • [41] Automatically generating the dynamic semantics of gradually typed languages
    Cimini M.
    Siek J.G.
    1600, Association for Computing Machinery (52): : 789 - 803
  • [42] Generic traits in statically typed languages - How to do it?
    Svendsen, Andreas
    Mller-Pedersen, Birger
    ICSOFT 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL PL/DPS/KE, 2008, : 39 - +
  • [43] A Typed Intermediate Language for Compiling Multiple Inheritance
    Chen, Juan
    CONFERENCE RECORD OF POPL 2007: THE 34TH ACM SIGPLAN SIGACT SYMPOSIUM ON PRINCIPLES OF PROGAMMING LANGUAGES, 2007, : 25 - 30
  • [44] On Jones-optimal specialization for strongly typed languages
    Makholm, H
    SEMANTICS, APPLICATIONS AND IMPLEMENTATION OF PROGRAM GENERATION, PROCEEDINGS, 2000, 1924 : 129 - 148
  • [45] Object-oriented encapsulation for dynamically typed languages
    Schärli, N
    Black, AP
    Ducasse, S
    ACM SIGPLAN NOTICES, 2004, 39 (10) : 130 - 149
  • [46] Challenges for Security Typed Web Scripting Languages Design
    Hassan, Doaa
    El-Kassas, Sherif
    Ziedan, Ibrahim
    JOURNAL OF INFORMATION ASSURANCE AND SECURITY, 2009, 4 (04): : 493 - 499
  • [47] On intermediate factorial languages
    Shur, Arseny M.
    DISCRETE APPLIED MATHEMATICS, 2009, 157 (07) : 1669 - 1675
  • [49] Reconciling method overloading and dynamically typed scripting languages
    Bergel, Alexandre
    Computer Languages, Systems and Structures, 2011, 37 (03): : 132 - 150
  • [50] Intrinsically-Typed Definitional Interpreters for Imperative Languages
    Poulsen, Casper Bach
    Rouvoet, Arjen
    Tolmach, Andrew
    Krebbers, Robbert
    Visser, Eelco
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2 (02):