First page Back Continue Last page Overview Graphics
The linker combines relocatable object files and library modules to create a standalone executable image.
Object files are created by successful assembly of a source file. (The assembler takes input prog.s and provides output prog.o .)
The linking process is controlled by commands in the linker command file, called, for example, prog.lkf.
A program typically consists of many source files that are compiled and then linked together to form the executable code. Dividing a program into separate files allows many users to work on different portions of the program and not interfere with each other. The linker is responsible for combining all of the sections of code and data from all of the modules into a single program. The object modules can get generated by source code from different languages such as assembly and C language.