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

Discussion

A symbol table used by a compiler for a language with modules must handle

  • A.names exported by one module and imported by another
  • B.only the names declared within a single procedure
  • C.the machine registers available on the target
  • D.the sequence of passes the compiler will perform

Answer: A

Import and export lists determine which names cross module boundaries. The compiler records what it exports so a separate compilation of another module can check the uses. That record is what an interface or header file makes available.

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

Post your comment

Please log in or register to post a comment.