Podcast
Questions and Answers
What is a primary disadvantage of pure interpretation compared to compilation?
What is a primary disadvantage of pure interpretation compared to compilation?
Pure interpretation allows for easier implementation of source-level debugging operations.
Pure interpretation allows for easier implementation of source-level debugging operations.
True
Name one example of a high-level language that was purely interpreted in the 1960s.
Name one example of a high-level language that was purely interpreted in the 1960s.
Lisp
A pure interpreter acts as a software simulation of a ________.
A pure interpreter acts as a software simulation of a ________.
Signup and view all the answers
Match the following programming languages with their status of interpretation:
Match the following programming languages with their status of interpretation:
Signup and view all the answers
What is a bottleneck when using a pure interpreter?
What is a bottleneck when using a pure interpreter?
Signup and view all the answers
In pure interpretation, error messages can directly refer to ________-level units.
In pure interpretation, error messages can directly refer to ________-level units.
Signup and view all the answers
The symbol table is not needed during the interpretation process.
The symbol table is not needed during the interpretation process.
Signup and view all the answers
Study Notes
Pure Interpretation Methods
- Pure interpretation is the opposite of compilation.
- Programs are executed by another program (interpreter).
- No translation occurs.
- The interpreter acts as a software simulation of a machine.
- Interpreter deals with high-level language statements.
- It's easy to implement debugging.
- Error messages directly relate to source code, making errors easy to find
- Execution is 10 to 100 times slower than compiled systems.
- Decoding high-level language statements is the main cause of slowness.
- Each statement must be decoded every time regardless if it was executed before.
- More space is required for pure interpretation.
- Symbol table needs to be present for access and modification.
- Source code may need a more accessible format sacrificing minimised size.
- Early languages (APL, SNOBOL, Lisp 1960s) used pure interpretation.
- Less common in high level languages by the 1980s.
- Pure interpretation is making a comeback, popular in web scripting languages like JavaScript and PHP in recent years.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz explores the concept of pure interpretation in programming, contrasting it with compilation. It discusses characteristics such as execution speed, debugging ease, and the evolution of interpreted languages throughout history.