SPARC Architecture, Assembly Language Programming, and C (2nd Edition)

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Signature __________________ Name _________________________ cs30x____ Student ID _________________ Score: Quiz 5 CSE 30 Winter 2007 #1. Order the following storage elements/types from fastest to slowest A) RAM (Main Memory) C) Registers E) L2 cache B) L1 cache D) Hard disk F) Tape ______ (Fastest) ______ ______ ______ ______ ______ (Slowest) List the 2 main events that would cause a full context switch: 1) 2) The ________________ is responsible for ensuring all symbols are known/defined. The ________________ is responsible for getting an executable from disk into memory and ready to run. The ________________ is responsible for combining all object files into a single executable file. How many bits are needed in a SPARC Format 3 instruction to encode a specific register? ________ How many bits are available in a SPARC Format 3 instruction to encode an immediate constant? ________ #2. What gets printed if the following function is invoked as recurse( 3, 6 ) ? int recurse( int a, int b ) { int local = a + b; int result; if (local <= 12) result = recurse( a + 1, b ) + local;
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern