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

Discussion

Which of the following is NOT normally recorded in a symbol table entry?

  • A.the scope of the declaration
  • B.the storage offset that has been assigned to the name
  • C.the machine instruction that reads the name
  • D.the type of the declared name

Answer: C

The first three are standard attributes consulted by later phases. Which instruction reads a value is decided by the code generator and has no place in an entry. Confusing what the table records with what the back end decides is a common slip.

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

Post your comment

Please log in or register to post a comment.