Computer Science, asked by kirtitripathi8006, 1 year ago

Difference between compiler and interpreter brainly

Answers

Answered by rajdewangan
15

Interpreter -

1. Translates program one statement at a time.

2.It takes less amount of time to analyze the source code but the overall execution time is slower.

3.No intermediate object code is generated, hence are memory efficient.

4.Continues translating the program until the first error is met, in which case it stops. Hence debugging is easy.

5.Programming language like Python, Ruby use interpreters.

compiler-

1.Scans the entire program and translates it as a whole into machine code.

2.It takes large amount of time to analyze the source code but the overall execution time is comparatively faster.

3.Generates intermediate object code which further requires linking, hence requires more memory.

4.It generates the error message only after scanning the whole program. Hence debugging is comparatively hard.

5.Programming language like C, C++ use compilers.

this will help u...

Answered by study58
5
In contrast with a compiler, an interpreter is a program which imitates the execution of programs written in a source language. Another difference between Compiler and interpreter is that Compiler converts the whole program in one go on the other hand Interpreter converts the program by taking a single line at a time.
Similar questions