




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Slides by Shannon I. Steinfadt [adapted from D. Patterson slides Revised 3rd Edition]
Front end per language High-level optimizations Global optimizer Code generator Dependencies Language dependent; machine independent Function Transform language to common intermediate form Intermediate representation Somewhat language dependent; largely machine dependent For example, loop transformations and procedure inlining (procedure integration) Small language dependencies; machine dependences slight (e.g. register counts / types) Including global and local optimizations + register allocation Highly machine dependent; language dependent Detailed instruction selection and machine-dependent optimizations; may include or be followed by assembler
int x = 14; int y = 7 - x / 2; return y * (28 / x + 2);
int x = 14; int y = 7 - 14 / 2; return y * (28 / 14 + 2);