Computer Science EngineeringHard
In graph-colouring register allocation, the nodes of the interference graph represent
- A. instructions
- B. live ranges (variables)
- C. basic blocks
- D. labels
Correct answer: B. live ranges (variables)
An edge joins two live ranges that are live simultaneously, so they cannot share a register.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- S-attributed grammars use only which kind of attributes?
- In the dangling-else problem, the usual resolution is to associate an else with
- A shift-reduce conflict in an LR parser means that in some state the parser
- For a fixed grammar in Chomsky normal form, the CYK algorithm decides membership of a string of length n in time
- The language {a^n b^n c^n | n >= 1} belongs to which smallest class?
- How many strings of length 3 over {a, b} contain 'ab' as a substring?