2080 8

CSC376 · 2080 · 5 marks

Why code optimization is needed? Describe any two techniques for loop optimization.

Why code optimization is needed? Describe any two techniques for loop optimization. [5]

Compiler Design and ConstructionChapter 4: Intermediate Code Generation, Code Generation and OptimizationCode Optimization

Code optimization is the process of transforming a program to make it more efficient without changing its output or meaning. It is needed because: - Reduces space and increases speed: Optimization reduces the memory consumed by the program and increases the execution speed of the compiled code. -...