Answer to Question #346545 in C++ for ghulam nabi

Question #346545

Differentiate between compiler and linker?


1
Expert's answer
2022-05-31T10:03:41-0400

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.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS