ACM Letters on Programming Languages and Systems · 1992 · 93 citations · 16 references
ComputingComputer ScienceCompilersComputer ArchitectureProgramming LanguagesAbstract Syntax TreesCode GenerationCompiler ConstructionControl-flow AnalysisIntermediate RepresentationProgramming Language ImplementationCode CompilationCompiler DesignCompiler SupportContinuation-passing StyleGarbage Collection OverheadRecursionStatic CompilationTail Recursion
C has been used as a portable target language for implementing languages such as Standard ML and Scheme, but prior compilations have traded portability and proper tail recursion for efficiency. The paper demonstrates a method to compile Standard ML to C without sacrificing portability or tail recursion, and proposes compiler changes to better support this approach. The approach converts Standard ML to a continuation‑passing style λ‑calculus intermediate language before compiling to C, producing code that runs about twice as slow as native code, and the authors analyze which aspects cause this slowdown. The resulting compiler produces highly portable code that still supports advanced features such as garbage collection and first‑class continuations.
C has been used as a portable target language for implementing languages like Standard ML and Scheme. Previous efforts at compiling these languages to C have produced efficient code, but have compromised on portability and proper tail recursion. We show how to compile Standard ML to C wihout making such compromises. The compilation technique is based on converting Standard ML to a continuation-passing style λ-calculus intermediate language and then compiling this language to C. The code generated by this compiler achieves an execution speed that is about a factor of two slower than that generated by a native code compiler. The compiler generates highly portable code, yet still supports advanced features like garbage collection and first-class continuations. We analyze the performance and determine the aspects of the compilation method that lead to the observed slowdown. We also suggest changes to C compilers that would better support such compilation methods.
16
Revised report on the algorithmic language ALGOL 60
John Backus, Friedrich L. Bauer, J. Green et al. · Communications of the ACM · 1963 · 909 citations · Full text
Jr. Guy L. Steele · DSpace@MIT (Massachusetts Institute of Technology) · 1978 · 404 citations · Full text
David Kranz, Richard Kelsey, Jonathan Rees et al. · ACM SIGPLAN Notices · 2004 · 259 citations
ORBIT: an optimizing compiler for scheme
Norman I. Adams, David Kranz, Richard Kelsey et al. · 1986 · 209 citations