
Linux System Programming Techniques
By :

When we generally speak of compilation, we mean the entire process of turning code into a running binary program. But there are actually four steps involved in compiling a source code file into a running binary program, and it's just one of these steps that's called compilation.
Knowing about these four steps, and how to extract the intermediate files, enables us to do everything from writing efficient Makefiles to writing shared libraries.
For this recipe, we will write three small C source code files. You can also download them from https://github.com/PacktPublishing/Linux-System-Programming-Techniques/tree/master/ch3. You'll also need the GCC compiler that we installed in Chapter 1, Getting the Necessary Tools and Writing Our First Linux Programs.
In this recipe, we will create a small program and then manually compile it by executing each step individually, using the compiler...