Quiz4.sp10

Quiz4.sp10 - Name_ cs30x_ Score: Signature _ Student ID _...

Info iconThis 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 4 CSE 30 Spring 2010 #1. In the SPARC architecture, to access local variables allocated on the stack you would use a _____________ (positive or negative) offset relative to register ____________. The _________________ SPARC instruction saves the current value of %pc into %o7. The _________________ SPARC instruction adds ____to the value in %i7 and sets %pc with the result. Using the Rt-Lt Rule, define a variable named foo that is a pointer to a function that takes a pointer to a double as its single argument and returns a pointer to a stuct fubar. #2. a) Convert 97.875 10 to binary fixed-point and single precision IEEE floating-point representation (expressed in hexadecimal ). binary fixed-point __________________________________ x 2 0 IEEE floating-point _______________________________________ ( hexadecimal ) b) Convert 0xC27E8000 (single precision IEEE floating-point representation) to fixed-point
Background image of page 1

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

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

Page1 / 2

Quiz4.sp10 - Name_ cs30x_ Score: Signature _ Student ID _...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online