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

Discussion

The function(s) of the Storage Assignment is (are)

  • A.to assign storage to all variables referenced in the source program.
  • B.to assign storage to all temporary locations that are necessary for intermediate results.
  • C.to assign storage to literals, and to ensure that the storage is allocate and appropriate locations are initialized.
  • D.all of the above

Answer: D

Correct answer: all of the above

Storage assignment reserves space for every variable the source program refers to, for the temporary locations the generated code needs to hold intermediate results, and for the literals - and it must ensure the storage is aligned to whatever boundary the machine requires. All three tasks belong to that phase.

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

Post your comment

Please log in or register to post a comment.