正在加载图片...
Introduction to Computer systems Exam l Apr.,2006 Time allowed: 2 hours Instructions 1. This paper contains EIGHT (8)questions and comprises SEVEN(7) pages 2. The total pts on the paper is 100 Chinese Student1 N S 姓名学号 Problem 1: (0. 14=7pts) Assume we are running code on a 6-bit machine using twos complement arithmetic for signed integers. A"short integer is encoded using 3 bits. Fill in the empty boxes in the table below. The following definitions are used in the table int unsigned ux =x Note You need not fill in entries marked with" Expression Decimal Representation Binary Representation -14 UX TM . TMin TMin+TMin Problem 2:(1*17=17pts) Consider the following 8-bit floating point representation based on the IEEE floating point format There is a sign bit in the most significant bit The next 3 bits are the exponent The exponent bias is 23-1-1=3 Page 1 of 7-Page 1 of 7 Introduction to Computer Systems Exam 1 Apr., 2006 Time Allowed: 2 hours Instructions 1. This paper contains EIGHT (8) questions and comprises SEVEN (7) pages. 2. The total pts on the paper is 100. Chinese Name 姓名 Student No. 学号 1 2 3 4 5 6 7 8 Total Score Problem 1: (0.5*14 = 7pts) Assume we are running code on a 6-bit machine using two’s complement arithmetic for signed integers. A “short” integer is encoded using 3 bits. Fill in the empty boxes in the table below. The following definitions are used in the table: short sy = -3; int y = sy; int x = -29; unsigned ux = x; Note: You need not fill in entries marked with “–”. Expression Decimal Representation Binary Representation _ -14 _ 011110 ux y x>>2 TMax -TMin TMin+TMin Problem 2:(1*17=17pts) Consider the following 8-bit floating point representation based on the IEEE floating point format: ⚫ There is a sign bit in the most significant bit. ⚫ The next 3 bits are the exponent. The exponent bias is 2 3-1 -1 = 3
向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有