ECS 50 Lecture Notes - Lecture 27: Booting, A.Out, Include Directive
Document Summary
What does the os do: the os is responsible for handling the common place tasks that most programs might wish to preform and managing the hardware resources available on your computer. This includes: i/o device management, the os handles reading and writing to i/o devices, it also manages numerous buffers where information that needs to be written/read to/from io devices is temporarily stored. It is from these buffers that your program actually does it reads and writes to: file management, the os maintains the file system. Static vs dynamic linking: your program makes calls to many functions that you don"t write such as printf, the linker, ld, is responsible for linking in the code to these other functions. The first time the function is called the program will be interrupted and the os will insert the location of the called function into the program.