Discussion
Data flow analysis is used to
Answer: A
Correct answer: gather facts about values that hold at each point in the program
Data flow analysis propagates information around the flow graph until it stabilises, answering questions such as which definitions reach a point, which variables are live, and which expressions are available.
Those facts are what make optimisation safe: common subexpression elimination needs to know the operands are unchanged, dead code elimination needs to know a value is never used. The analysis produces no code itself; it establishes the conditions under which a transformation is permitted.
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