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

Discussion

A debug build typically differs from a release build in that the debug build

  • A.runs faster because fewer instructions are actually emitted
  • B.performs more thorough semantic checking of the source program
  • C.uses a different parser suited to incomplete source programs
  • D.omits most optimisation and includes full symbolic information

Answer: D

Correct answer: omits most optimisation and includes full symbolic information

The two go together and both serve the debugger. Full symbolic information supplies the mapping from addresses to source lines and variables.

Omitting optimisation keeps that mapping meaningful: an optimiser reorders code, merges computations and removes variables entirely, after which stepping through the source becomes confusing and inspecting a variable may be impossible. A debug build is therefore slower and larger by design. Semantic checking and the parser are identical in both builds.

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

Post your comment

Please log in or register to post a comment.