Simple Program Lifetime Stages
In the previous chapter, you obtained a broad insight into aspects of the modern multitasking operating system’s functionality that play a role during program execution. The natural next question that comes to the programmer’s mind is what to do, how, and why in order to arrange for the program execution to happen.
Much like the lifetime of a butterfly is determined by its caterpillar stage, the lifetime of a program is greatly determined by the inner structure of the binary, which the OS loader loads, unpacks, and puts its contents into the execution. It shouldn’t come as a big surprise that most of our ...