Machine-translated by Google. Questions are authored in English.
Top

Discussion

Interprocedural analysis is more expensive than global analysis because

  • A.it operates on the source text rather than the intermediate code
  • B.it requires the program to be free of any loops
  • C.it can only be performed after the program has been linked
  • D.it must consider the interactions between many procedures at once

Answer: D

The call graph must be built and information propagated around it. Separate compilation also limits what is visible, which is why link time optimisation exists. The call graph itself may be incomplete when function pointers are used.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.