|Red Dragon Book Basic Block Question email@example.com (1992-04-20)|
|From:||firstname.lastname@example.org (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
[Looks like a buglet to me. I'd update the register contents after emitting
the instruction. -John]
Return to the
Search the comp.compilers archives again.