DSpace@MIT (Massachusetts Institute of Technology) · 1978 · 404 citations · 0 references
Open access
ComputingComputer ScienceCompilersProgramming LanguagesSyntaxCompiler ConstructionControl-flow AnalysisData-flow AnalysisFunctional ProgrammingSyntax AnalysisType SystemsCompiler DesignLambda CalculusLambda Calculus SemanticsOperators
The compiler focuses on general environment and control issues, using a small lambda‑calculus basis set and macro expansions for imperative constructs, rather than specialized data‑manipulation knowledge. It uses a few optimizations and treats function calls as GO TO statements to generate code comparable to traditional compilers. We have built a Scheme compiler.
We have developed a compiler for the lexically-scoped dialect of LISP known as SCHEME. The compiler knows relatively little about specific data manipulation primitives such as arithmetic operators, but concentrates on general issues of environment and control. Rather than having specialized knowledge about a large variety of control and environment constructs, the compiler handles only a small basis set which reflects the semantics of lambda-calculus. All of the traditional imperative constructs, such as sequencing, assignment, looping, GO TO, as well as many standard LISP constructs such as AND, OR and COND, are expressed as macros in terms of the applicative basis set. A small number of optimization techniques, coupled with the treatment of function calls as GO TO statements, serves to produce code as good as that produced by more traditional compilers.