CS 350 Exam1solnF07

CS 350 Exam1solnF07 - If no, explain why not. c. (9 points)...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Name_____________________________________ ID___________________________ CS 350 Computer Organization and Assembly 9/26/07 Open books, notes (No wireless devices!) 75 minutes You will answer all 4 problems. Each problem is worth 25 points. Show all work and state all assumptions! Question 1 (25pts total) a. (13 points) What is the difference between a compiler and an interpretor? b. (12 points) You are asked to design a new programming language for programming applications on cell phones. Would you design and implement your language to be compiled or interpreted? Give an explanation of your decision.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Question 2 (25 pts total) This question is continuing on from 1b, assuming you are designing a new language for programming cell phone applications. a. (8 points) Would your language have a floating point data type? Why or why not? b. (8 points) Can your language include a data type that is not supported by the processor ISA? If yes, explain in general how this would be done.
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If no, explain why not. c. (9 points) Does your language have to include every data type that is supported by the ISA? Why or why not? 3 Question 3 (25 points total) For an 8-bit representation a. (5 points) What is the range of unsigned values that can be stored? b. (5 points) What is the range of twos complement values that can be stored? c. (5 points) Show the twos complement representation of -47 4 d. (5 points) Show the twos complement representation for -97 64 e. (5 points) Show the twos complement representation for 79 + 86 5 Question 4 (25 pts) Assume we have a 10-bit architecture that uses IEEE floating point with s=1, k=4 and n=5. All of the rules for normalized numbers, denormalized numbers, and special cases are the same. As before, all numbers are represented in the form: V = (-1) S x M x 2 E Translate the following 10-bit floating point number into decimal and show the binary and decimal values for E, e, M, f and S. 1 0 1 1 1 1 0 0 1 1...
View Full Document

Page1 / 5

CS 350 Exam1solnF07 - If no, explain why not. c. (9 points)...

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

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