[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vanishing MrEd




Answer: part 2. 

Yes, one can compile plain Scheme to assembly code via a CPS
transformation, and the CPS form is close to a flow-chart program. 

No, one doesn't have to. 

Turning recursions into gotos is necessary, because the machine doesn't
know about recursion. (Well, one could build (and people have) a machine
that's a bit better on this stuff than what we have.) So eventually a 
program must be turned into a "program" that consists of pushes, loads,
pops, and branches. 

EoPL by Friedman and Wand is a good first step in this direction. 

Appel's Tiger book is a reasonable introduction to compilation with cps and
friends. 

-- Matthias