COMPILER GENERATION BY PARTIAL EVALUATION - A CASE-STUDY

被引:0
|
作者
GOMARD, CK [1 ]
JONES, ND [1 ]
机构
[1] UNIV COPENHAGEN,DEPT COMP SCI,DK-2100 COPENHAGEN,DENMARK
来源
STRUCTURED PROGRAMMING | 1991年 / 12卷 / 03期
关键词
PARTIAL EVALUATION; PROGRAM SPECIALIZATION; COMPILER; COMPILER GENERATION; SELF APPLICATION;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
It was known as long ago as 1971 in Japan and Russia that the program transformation principle called partial evaluation or program specialization has intimate connections with compiling. In particular a program specializer can be used to compile, given as input data an interpretative definition of a programming language. Further, a program specializer can generate a compiler and even a compiler generator-provided it is self-applicable. The purpose of this paper is to show by a concrete example that certain rather simple techniques are sufficient to construct a fully automatic and nontrivial program specializer for a simple imperative language. Further, the specializer is self-applicable, with the consequence that it can both compile and generate stand-alone compilers.
引用
收藏
页码:123 / 144
页数:22
相关论文
共 50 条