This
preview
has intentionally blurred sections.
Sign up to view the full version.
Unformatted text preview: b) Write the appropriate instructions to perform the following assignment statements. a[7] = a[2]; ________________________ ________________________ a[0] = a[5]; ________________________ ________________________ short *ptr; /* ptr mapped to %l4 */ ptr = &a[3]; ________________________ ++ptr; /* ptr mapped to %l4 */ ________________________ short d = *ptr; /* d mapped to %l2; ptr to %l4 */ ________________________ *ptr = d; /* d mapped to %l2; ptr to %l4 */ ________________________ #3. Give the equivalent C pointer expression for the following array expression assuming a is defined as an array. a[42] is equivalent to _____________________________ (equivalent pointer expression)....
View
Full Document
- Fall '08
- Ord
- Local variable, appropriate save instruction
-
Click to edit the document details