Which of the following is not feature of compiler?a)Scan the entire pr...
Explanation: The objective of the compiler is clearly not to increase the execution time of the program.
View all questions of this test
Which of the following is not feature of compiler?a)Scan the entire pr...
Explanation:
A compiler is a software program that translates high-level source code into low-level machine code. It plays a crucial role in the software development process. The main purpose of a compiler is to convert the entire program into machine code, but it also performs other tasks such as error detection and optimization.
Scan the entire program first and translate into machine code:
One of the key features of a compiler is that it scans the entire program before translating it into machine code. This allows the compiler to analyze the program as a whole and perform various optimizations. It also helps in detecting errors and ensuring consistency in the program.
To remove syntax errors:
Another important feature of a compiler is its ability to detect and report syntax errors in the source code. Syntax errors occur when the code violates the rules of the programming language. The compiler identifies these errors and provides detailed error messages to help the programmer fix them.
Slow for debugging:
Debugging is the process of finding and fixing errors or defects in a program. While compilers are not specifically designed for debugging, they play a role in the debugging process. However, it is true that compilers can be slow for debugging because they generate optimized machine code, which can make it harder to trace the execution of the program.
Execution time is more:
The statement "Execution time is more" is not a feature of a compiler. In fact, compilers are designed to optimize the execution time of a program. They perform various optimizations such as code elimination, loop unrolling, and register allocation to make the generated machine code more efficient. The goal is to minimize the execution time of the program.
Overall, the correct answer is option D - "Execution time is more" because it is not a feature of a compiler.