Discussion
A phase of a compiler is distinguished from a pass in that a phase
Answer: D
Correct answer: is a logical stage while a pass is one complete reading of the input
A phase is a conceptual division of the translation - lexical, syntax, semantic and so on. A pass is a physical one: one complete traversal of the program's representation.
The two need not correspond. Several phases are commonly folded into a single pass to avoid writing intermediate forms to disk, and one phase may occasionally need more than one pass. Confusing them is the standard error, and the question turns on nothing else.
No comment is present. Be the first to comment.
Loading…
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