C language interpreter
Tim Maroney
tim at cmu-cs-k.ARPA
Sat Nov 17 04:06:31 AEST 1984
The difference between a compiler and an interpreter is really not that
great if the translator front end is well designed, such that it spits out a
completely machine-independent attributed parse tree. A compiling back end
walks the tree and spits out code; an interpreting back end (hmm, maybe this
should go to net.motss -- ow! Stop hitting me!) walks the tree and executes
code. The two back ends will probably have to be different programs, but
there is a lot of overlap in the decisions on the two.
Unfortunately, PCC does not use this approach, since the front end emits an
APT which is interspersed with assembly code....
--
Tim Maroney, Carnegie-Mellon University Computation Center
ARPA: Tim.Maroney at CMU-CS-K
uucp: seismo!cmu-cs-k!tim (supposedly)
"Remember all ye that existence is pure joy; that all the sorrows are
but as shadows; they pass & are done; but there is that which remains."
Liber AL, II:9.
More information about the Comp.unix.wizards
mailing list