Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
0 votes
in Compilers & Operating Systems by (user.guest)

1 Answer

0 votes
by (user.guest)

The two types of code optimization we have are machine dependent and machine independent code optimization. 

Machine Independent Optimization: This type of code optimization phase attempts to improve the intermediate code to get a better target code as the output. The part of the intermediate code which is transformed here does not involve any CPU registers or absolute memory locations.

Machine Dependent Optimization: Machine-dependent optimization on the other hand is done after the target code has been generated and when the code is transformed according to the target machine architecture. It involves CPU registers and may have absolute memory references rather than relative references. Machine-dependent optimizers put efforts to take maximum advantage of the memory hierarchy.


Related questions

0 votes
1 answer
Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.
...