This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: b) Write the appropriate instructions to perform the following assignment statements. a = a; ________________________ ________________________ a = a; ________________________ ________________________ short *ptr; /* ptr mapped to %l5 */ ptr = &a; ________________________ ++ptr; /* ptr mapped to %l5 */ ________________________ short d = *ptr; /* d mapped to %l2; ptr to %l5 */ ________________________ *ptr = d; /* d mapped to %l2; ptr to %l5 */ ________________________ #3. Write the equivalent C expression for an array index access. Remember scaling is done automatically by the compiler. float a; . a[i] is equivalent to _____________________________ (equivalent pointer expression) ....
View Full Document
- Winter '08