

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
A cs30 quiz from fall 2007, focusing on the sparc architecture and c programming concepts such as register usage, save instructions, local variable allocation, and function call mechanics.
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


struct foo { char a; short b; long c; char d; double e; } fubar;
int a; void fubar( int x ) { int y = -42; static int *z = &a; ... }
int mystery( int param ) { int local = 45;
if ( local > param ) { local = local - param; printf( "%d\n", local ); /* Output the value of local followed by a newline / param = mystery( param + 10 ) + local; printf( "%d\n", param ); / Output the value of param followed by a newline */ } else { printf( "Whoa\n" ); }
return local; }