Discussion
Which of the following is/are type of data supported/added by/in typical object file formats in code generation phase of a compiler ?
(i) Data segment
(ii) Block started by symbol
(iii) Text segment
Answer: C
All three are supported, so the answer is (i), (ii) and (iii) only.
Typical object file formats (such as ELF or COFF) produced by a compiler's code generation phase contain a text segment holding the machine code, a data segment holding initialised global and static data, and a BSS segment ('block started by symbol') recording the size of uninitialised data, which takes no space in the file and is zeroed at load time.
Each narrower option leaves out one of these standard sections.
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