Types in Compilation: Third International Workshop, TIC 2000, Montreal, Canada, September 21, 2000. Revised Selected PapersRobert Harper The importance of typed languages for building robust software systems is, by now, an undisputed fact. Years of research have led to languages with richly expressive, yet easy to use, type systems for high-level programming languages. Types provide not only a conceptual framework for language designers, but also a ord positive bene ts to the programmer, principally the ability to express and enforce levels of abstraction within a program. Early compilers for typed languages followed closely the methods used for their untyped counterparts. The role of types was limited to the earliest s- ges of compilation, and they were thereafter ignored during the remainder of the translation process. More recently, however, implementors have come to - cognize the importance of types during compilation and even for object code. Several advantages of types in compilation have been noted to date: { They support self-checking by the compiler. By tracking types during c- pilation it is possible for an internal type checker to detect translation errors at an early stage, greatly facilitating compiler development. { They support certi cation of object code. By extending types to the ge- rated object code, it becomes possible for a code user to ensure the basic integrity of that code by checking its type consistency before execution. { They support optimized data representations and calling conventions, even in the presence of modularity. By passing types at compile-, link-, and even run-time, it is possible to avoid compromises of data representation imposed by untyped compilation techniques. |
Contents
| 1 | |
Program Representation Size in an Intermediate Language with Intersection and Union Types | 26 |
An Abstract Model of Java Dynamic Linking and Loading | 53 |
Sharing in Typed Module Assembly Language | 85 |
Scalable Certification for Typed Assembly Language | 117 |
Safe and Flexible Dynamic Linking of Native Code | 147 |
Alias Types for Recursive Data Structures | 177 |
| 207 | |
Common terms and phrases
abbreviations abstract ACM Symposium algorithm aliasing annotations approach bytecode c₁ calculus certifying compiler CIL compiler closure coercions components constraints context data structures defined describe DLopen DLpop dlsym_t dynamic linking dyninit function encode example execution exported expression external field flow analysis Functional Programming gzip Harper hash-consing hashtable higher-order implementation imports instruction internal labels Java K₁ Lemma loaded code memory method call MTAL object file OCaml offset operation operational semantics optimizations overhead pointer polymorphic Popcorn pre-condition prepared code Programming Languages recursive types requires result rules run-time semantics shared libraries singleton kinds space Standard ML static strategy subtype superclasses symbol table Symposium on Principles t₁ TAL/Load term TMAL trusted computing base type and value type check type constructors type heap type information type sharing type system type-safe Typed Assembly Language union types value heap verification virtual well-formed


