Consider the following program: § Perform at least the following optimizations: § Removal of the…

Consider the following program:

§  Perform at least the following optimizations:

§  Removal of the if in the innermost loop (line 14)

§  Loop unrolling (line 13)

§  Constant propagation

§  Floating-point to fixed-point conversion

§  Avoidance of all accesses to arrays

Please provide the optimized version of the program after each of the transformations and do also check for consistent results!

 

 

Looking for a Similar Assignment? Hire our Top Uk Tutors while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Active Discount Code FREE15