Homework 2

Out: Wednesday October 3

Reading

Due: Friday October 5

Read the text: Silberschatz Chapter 3

Exercises

Due: Monday 10/8 at the start of class

3.2, 3.4, 3.6

Write a utility in C that converts 32 bit HEX inputs ("0xfeedface") into integers (AND SHOW THE STEPS!!!)

Input should come from argc/argv as in:

% ./a.out 0xfeedface
4277009102
% ./a.out 0xffff
65535

Your utility should do this conversion MANUALLY. That is, you have to write the code that operates the bit manipulation.

Your utility is due in class on Monday with the problems from the book. Please turn in the utility as a printout of your source code.