Previous Lecture Lecture 5 Next Lecture

Lecture 5, Thu 07/11

Makefiles, Data Representation

Code from lecture

https://github.com/ucsb-cs16-m19/code-from-class/tree/master/07-11

Lecture video with the rest of the lecture

https://youtu.be/I1HAQQm_ejM

Stuff I wrote on the virtual “whiteboard” in the video

Go here and click on the appropriate date: https://1drv.ms/o/s!AlgIeD1urAgmgQU7loNfb3-LYrma

Super Sweet Makefile Tutorial

https://docs.google.com/document/d/1Kf8RbENqHVzGIEJnDQVKBbS_zoOeJHh5YzYTHqJfuRA/edit?usp=sharing

Made by Jacqui Mai, Professor K, and me.

Topics

Data and number representation

Precedence

Test driven development

g++ -c shapes.cpp

The above command creates the object file shapes.o

We will then look at how to link all the object files into an executable using the -o option as shown below

g++ file1.o file2.o file3.o -o finalexecuatble