Show the code that our compiler should generate for the following assignment: x := A[3,i]. Explain how you arrived at your answer.
(b) Consider the following more complex declarations:
Assume that these declarations are local to the current subroutine. Note the lower bounds on indices in A; the first element is A[1,10]. Describe how r would be laid out in memory. Then show code to load r.A[2,j].B[k] into a register. Be sure to indicate which portions of the address calculation could be performed at compile time.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here