3.65 Multiple Dimension Array II
★
The following code transposes the elements of an array, where is a constant defined by #define
:
When compiled with optimization level -O1
, GCC generates the following code for the inner loop of the function:
We can see that GCC has converted the array indexing to pointer code.
A. Which register holds a pointer to array element A[i][j]
?
%rdx
B. Which register holds a pointer to array element A[j][i]
?
%rax
C. What is the value of ?
15
Last updated