1.7 Implementation Methods 291.7.3 Hybrid Implementation Systems
Some language implementation systems are a compromise between compilers
and pure interpreters; they translate high-level language programs to an inter-
mediate language designed to allow easy interpretation. This method is faster
than pure interpretation because the source language statements are decoded
only once. Such implementations are called hybrid implementation systems.
The process used in a hybrid implementation system is shown in
Figure 1.5. Instead of translating intermediate language code to machine
code, it simply interprets the intermediate code.Source
programInterpreterResultsInput dataLexical
analyzerSyntax
analyzerIntermediate
code generatorParse treesLexical unitsIntermediate
codeFigure 1.5
Hybrid implementation
system