Complete the code to identify the main goal of optimization in compilers.
The primary goal of compiler optimization is to [1] the program's execution time.
Optimization aims to reduce the time a program takes to run, making it faster.
Complete the code to explain how optimization affects resource usage.
Optimization helps to [1] the use of memory and CPU resources during program execution.
Optimization aims to minimize resource usage, making programs use less memory and CPU.
Fix the error in the statement about optimization benefits.
Optimization can sometimes [1] the readability of the generated code.Optimization often reduces readability because it changes code to be more efficient but less clear.
Fill both blanks to describe how optimization affects program size and speed.
Optimization can [1] the program size while [2] its execution speed.
Optimization often reduces program size and increases execution speed by making code smaller and faster.
Fill all three blanks to complete the dictionary comprehension about optimization effects.
effects = { [1]: [2] for [3] in ['speed', 'memory', 'size'] }The dictionary maps each effect to reduce for each effect in ['speed', 'memory', 'size'], illustrating the general impact of optimization on these aspects.