Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS30 Fall 2005 Quiz 4 - SPARC Architecture and IEEE Floating-Point - Prof. Richard Ord, Quizzes of Computer Science

The solutions to quiz 4 of the cs30 course offered in fall 2005. It covers topics such as accessing local variables in the sparc architecture, using specific instructions, and converting between binary fixed-point and ieee floating-point representations. Additionally, it discusses the limitations of leaf subroutines and the output of a given function call.

Typology: Quizzes

2009/2010

Uploaded on 03/28/2010

koofers-user-0iu
koofers-user-0iu 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download CS30 Fall 2005 Quiz 4 - SPARC Architecture and IEEE Floating-Point - Prof. Richard Ord and more Quizzes Computer Science in PDF only on Docsity! Signature __________________ Name_______________ cs30x____ Student ID _________________ Score: Quiz 4 CSE 30 Fall 2005 #1. To access local variables stored on the Runtime Stack in the SPARC architecture, you use a ____________________ offset relative to register ___________. The ___________ instruction saves the current value of %pc in %o7. The ret instruction adds __________ to the value in __________ and stores the result in __________. In gdb, how do you set a breakpoint at a function named scooby? _______________________________ The ___________ registers in the current register window set are mapped back to the ___________ registers as part of the restore instruction. ________________ subroutines support recursion. If we have a ret instruction, the next instruction should be ___________________. #2. a) Convert -76.12510 to binary fixed-point and single precision IEEE floating-point representation (expressed in hexadecimal). binary fixed-point __________________________________ x 20 IEEE floating-point _______________________________________ (hexadecimal) b) Convert 0x428A8000 (single precision IEEE floating-point representation) to fixed-point decimal. fixed-point decimal ______________________________ (decimal / no exponential notation) (over)
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved