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

Discussion

A compiler that reports every use of an undeclared name separately is

  • A.using a symbol table implemented as a linear list
  • B.producing noisier diagnostics than one that reports it once
  • C.behaving exactly as the language standard requires it to behave
  • D.unable to complete the compilation of the program

Answer: B

Installing a placeholder entry after the first report suppresses the repeats. The quality of diagnostics is one of the more visible consequences of symbol table design. Users judge a compiler heavily on how its error messages read.

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

Post your comment

Please log in or register to post a comment.