Differentiate between compiler and linker?
Linker comes into act whenever a '.obj' file needs to be linked with its library functions as compiler doesn't understand what is (scanf or printf..etc) , compiler just converts '.c' file to '.obj' file if there's no error without understanding library functions we used. So to make 'obj' file to 'exe'(executable file) we need linker because it makes compiler understand of library functions.
A compiler generates object code files (machine language) from source code.
A linker combines these object code files into an executable.
Comments
Leave a comment