Computer Science
How is an interpreter different from compiler on these parameters?
(a) Memory requirement during translation
(b) Memory requirement after translation
(c) Number of instructions translated
Computer System
2 Likes
Answer
(a) Memory requirement during translation — Interpreter requires less memory during translation, as it translates and executes code line by line. Compiler requires more memory during translation, as it translates the entire program at once before execution.
(b) Memory requirement after translation — Interpreter continues to require memory after translation, as it needs to re-translate every time the program is run. Compiler requires less memory after translation, as it produces an executable file that can be run independently.
(c) Number of instructions translated — Interpreter translates and executes one instruction at a time. Compiler translates the entire set of instructions at once, producing a complete machine code program.
Answered By
1 Like
Related Questions
Identify the type of software:
(a) The software acts as an interface between a user and the hardware.
(b) It converts the program written in HLL into machine language by converting and executing it line by line.
Write down the type of memory needed to do the following:
- To store data permanently,
- To execute a program,
- To store instructions which cannot be overwritten.
What is the major difference between optical and magnetic discs?
Write the difference between a DVD and a CD.