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

Discussion

Which of the following reduces both code size and execution time?

  • A.loop unrolling
  • B.function inlining
  • C.loop peeling
  • D.dead code elimination

Answer: D

The first three all enlarge the program in exchange for speed. Removing dead code makes the program both smaller and faster, which is why it is applied at every optimisation level. It also simplifies the code that later passes have to consider.

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

Post your comment

Please log in or register to post a comment.