Red Dragon Book Basic Block Question

bart@sisters.cs.uoregon.edu (Barton Christopher Massey)
Mon, 20 Apr 1992 17:31:26 GMT

          From comp.compilers

Related articles
Red Dragon Book Basic Block Question bart@sisters.cs.uoregon.edu (1992-04-20)
| List of all articles for this month |
Newsgroups: comp.compilers
From: bart@sisters.cs.uoregon.edu (Barton Christopher Massey)
Keywords: books, code, errors, question
Organization: U. Oregon CS Dept.
Date: Mon, 20 Apr 1992 17:31:26 GMT

On page 538 of the Red Dragon Book (Aho, Sethi, Ullman _Compilers_ ISBN
0-201-10088-6) is a description of the function getreg. At the end of
step 1, we "Update the address descriptor of y to indicate that y is no
longer in L". getreg is called by the code-generation algorithm on page
537, in step 1. In step 2 of the code-generation algorithm, the address
descriptor of y is used to find the current locations of y.
Unfortunately, this is the address descriptor just blasted by getreg.


Are we just confused, or is the algorithm? Patches?


Bart Massey Rajen Datta
bart@cs.uoregon.edu rajen@cs.uoregon.edu
[Looks like a buglet to me. I'd update the register contents after emitting
the instruction. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.