0% found this document useful (0 votes)
3K views1 page

Pure Interpreter Pure Interpreter Pure Interpreter

The document discusses pure and impure interpreters. A pure interpreter retains the source program in its original form during interpretation, incurring substantial analysis overheads. An impure interpreter performs preliminary processing to convert the source program into an intermediate representation to reduce analysis overhead and speed up interpretation, but requires re-preprocessing after any modifications. In conclusion, impure interpreters eliminate most analysis during interpretation by using an intermediate representation.

Uploaded by

Ridham Vyas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views1 page

Pure Interpreter Pure Interpreter Pure Interpreter

The document discusses pure and impure interpreters. A pure interpreter retains the source program in its original form during interpretation, incurring substantial analysis overheads. An impure interpreter performs preliminary processing to convert the source program into an intermediate representation to reduce analysis overhead and speed up interpretation, but requires re-preprocessing after any modifications. In conclusion, impure interpreters eliminate most analysis during interpretation by using an intermediate representation.

Uploaded by

Ridham Vyas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PURE INTERPRETER

– Here, source program is retained in source form all through interpretation.


– Dis-advantage: This arrangement incurs substantial analysis overheads while interpreting the statement.
– Eliminates most of the analysis during interpretation except type analysis.
– For type analysis pre processor is needed.

IMPURE INTERPRETER
Perform some preliminary processing of the source program to reduce the analysis overhead during
interpretation.
– Pre-processor converts program to an IR which is used during interpretation.
– IC can be analysed more efficiently then source program.
– Thus, speed up interpretation.
– Dis-advantage: Use of IR implies that entire program has to be pre-processed after any modifications.
– Thus, incurs fixed overhead at the start of interpretation.
– Conclusion Statement: Thus, eliminates most of the analysis during interpretation.

You might also like