This document discusses software engineering and system programming concepts. It provides an example C code for a factorial function, showing how it is structured and compiled using gcc and linked using ld. It explains that header files are used during compilation to provide function prototypes, and differences between compilation and linking errors. It also discusses structuring source code and binaries, and how to specify libraries for linking.
This document discusses software engineering and system programming concepts. It provides an example C code for a factorial function, showing how it is structured and compiled using gcc and linked using ld. It explains that header files are used during compilation to provide function prototypes, and differences between compilation and linking errors. It also discusses structuring source code and binaries, and how to specify libraries for linking.
This document discusses software engineering and system programming concepts. It provides an example C code for a factorial function, showing how it is structured and compiled using gcc and linked using ld. It explains that header files are used during compilation to provide function prototypes, and differences between compilation and linking errors. It also discusses structuring source code and binaries, and how to specify libraries for linking.