Machine-Independent Optimizations in Compiler Design

--

The main aim of machine-independent optimization is to improve the generated intermediate code so that compiler can get better target code.

Eliminating unwanted code from the object code or replacing one set of code with another set of code, which makes the object code faster without changing the result of object code, is generally called code improvement or code optimization.

A high-level language can have run-time overhead. Writing a program in a high-level language can cause redundancy. Code optimization will allow us to remove these inefficiencies.

Optimized code will use less space and makes the program execution fast. The optimized code can be re-used.

https://www.tutorialandexample.com/machine-independent-optimizations-compiler-design/

--

--

No responses yet