Assertion (A): Pointer assignments make optimisation of intermediate code harder.
Reason (R): The compiler cannot always determine which variables a pointer might refer to.
Answer: A
Both are true and the reason gives the mechanism, and the difficulty has a name. Alias analysis attempts to bound the set of possible targets, and where it cannot, the optimiser must assume the worst and forgo the transformation.
Please log in or register to report this question.