Discussion
Storage allocation decisions such as the offset of a local variable in an activation record are made
Answer: B
Correct answer: in the back end, once the target machine layout is known
An offset within an activation record depends on the sizes and alignments of the target's data types and on its calling convention - none of which the front end knows.
The decision therefore belongs to the back end, along with register allocation and instruction selection. The linker resolves addresses between modules rather than within a frame, the scanner has no notion of layout, and the preprocessor works on text before any of this arises.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development