Question: For the following C function, what will prevent an optimizing compiler from reducing the two memory lookups at address a to just one lookup? float

For the following C function, what will prevent an optimizing compiler from reducing the two memory lookups at address a to just one lookup? float f(int* a, float* b) { *b = *a + 3; return *b/ *a; } Pointer aliasing Procedure call Compilers cannot perform this optimization None of the above. The compiler will optimize the lookup of a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
