Thu Jan 28
Finish discussing the material in chapter 2.
- Try practice problem 2.43, pg 107
- Work through explicitly the numbers in 9a.c
- Explain what's going on with the little-endian test in show bytes.c
- Run show_bytes.c on some test variables (string, int, long, float, double, ...) and interpret the hex values displayed.
Discuss overview of IEEE floating point, including
- exponent
- fractional part
- which numbers can or can't be stored exactly
- what "denormalized" means and when it happens
- use show_bytes to look at hex in memory for some floats and interpret.
- note presence of infinity (!) as part of the standard, and NaN
Homework (problems from chap 2) is posted. We can work on some of
those in class if we run out of time.
Not enough to do? Start reading chapter 3.