Week 3 Day 2 - Separate Compilation

Channel:
Subscribers:
2,700
Published on ● Video Link: https://www.youtube.com/watch?v=QG67-SsW6Xo



Duration: 1:30:11
167 views
1


Today we went over the compilation process. It has more steps than this, but this is a good start -
1) Preprocessor step - all lines that start with a # are processed
2) Compilation - all .cc files (readable by humans) are turned into .o object files (readable by the CPU)
3) Linker - all the .o files are combined together to make an executable.


We then talked about Makefiles, which are a way of automating the build process. This is actually a really big topic, but we went over at least the basics today. What it means for you is that you'll use "make" to build your projects rather than manually compiling files with "g++".







Tags:
csci 41
separate compilation
makefiles