AND ANSWERS 100% CORRECT
Optimization of a program that works within a single basic block of code is called
_________________. - ANSWER-local transformation / optimization
Any macros specified in source code are expanded by the - ANSWER-preprocessor
What is the role of optimizing the compiler? - ANSWER-minimize a program's execution
time, memory footprint, storage size, and power consumption
What does the lexical analyzer take as input? - ANSWER-source code
What is the process of searching for match tokens described using? - ANSWER-Finite
automata & Regular expressions
These operations are performed in parsing phase of compilation. - ANSWER-Construct
parse trees
The primary job of the linker is to . - ANSWER-Combines all of the object files for one
program into a single object file.
In a C program, the statement int x = 10.5; should be detected as______ - ANSWER-
syntax error
-g - ANSWER-Include debug information, no optimization
-O0 - ANSWER-Default, no optimization
-O1 - ANSWER-- Do optimizations that don't take too long- CP, CF, CSE, DCE, LICM,
inlining small functions
-O2 - ANSWER-Take longer optimizing, more aggressive scheduling
-O1 - ANSWER-
-O3 - ANSWER-Make space/speed trade-offs: loop unrolling, more inlining
-Os - ANSWER-Optimize program size
Amongst which of the following is / are the logical operators in Python? - ANSWER--and