

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions for allocating stack space and writing unoptimized sparc assembly instructions for local variables, as well as the equivalent c expression for array index access.
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


short a; char b; unsigned short c; int d; char e; float f;
save _________ , ______________________________ , _________
(OVER)
short a[9];
save _________ , ______________________________ , _________
a[7] = a[4];
a[5] = a[1];
short ptr; / ptr mapped to %l5 */
ptr = &a[1];
++ptr; /* ptr mapped to %l5 */
short d = ptr; / d mapped to %l2; ptr to %l5 */
ptr = d; / d mapped to %l2; ptr to %l5 */