ADVANCED TOPICS IN COMPILER DESIGN
PARALLEL AND DISTRIBUTED COMPILERS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
An advantage of a compiler is that the code is optimised during the compiling.
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Statement 1 : A Compiler is a program that translates a high-level language program into a machine language program and then executes it, whereas an interpreter is a program that translates one statement of a high-level language program into machine code and then executes it.
Detailed explanation-2: -Answer: Translation of a code using a Compiler is faster as compared to the translation time taken by the Interpreter for the same piece of code.
Detailed explanation-3: -Extra Memory → It occupies extra memory since it needs to generate a new file. Extra step → Unlike interpreter, we can’t run our source code directly, we need to additionally run the executable file.
There is 1 question to complete.