Previous Lecture | lect06 Slides | Next Lecture |
Code from lecture
https://github.com/ucsb-cs16-s19-nichols/code-from-class/tree/master/04-16
Topics
- Super sweet Makefile tutorial: https://docs.google.com/document/d/1Kf8RbENqHVzGIEJnDQVKBbS_zoOeJHh5YzYTHqJfuRA/edit?usp=sharing
- Another resource for learning about separate compilation with Makefiles https://foo.cs.ucsb.edu/16wiki/index.php/C%2B%2B:_Separate_Compilation_and_Makefiles
Data and number representation
- Positional encoding: binary, hex, decimal
- Internal vs. external representation
- Conversion between different representations
- Key ideas: bits can represent ANYTHING. With n bits we can represent at most 2^N things
- Apply above rule to represent characters (ASCII), unicode, colors ….
- The data type of a variable determines its representation in memory AND the number of bits used to store each variable