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

Discussion

An optimisation that reduces code size may be preferred over one that reduces execution time when

  • A.the source program contains many loops
  • B.the target is an embedded system with limited memory
  • C.the program is expected to run for a very long time
  • D.the compiler is required to complete quickly

Answer: B

Embedded targets often have severe memory constraints. Compilers expose separate flags for optimising size, which suppress transformations such as unrolling and aggressive inlining. Some targets have so little memory that size is the only consideration.

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

Post your comment

Please log in or register to post a comment.