What is compiler, linker, loader?

后端 未结 14 969
离开以前
离开以前 2020-12-07 06:48

I wanted to know in depth meaning and working of compiler, linker and loader. With reference to any language preferably c++.

14条回答
  •  眼角桃花
    2020-12-07 07:17

    Wikipedia ought to have a good answer, here's my thoughts:

    • Compiler: reads something.c source, writes something.o object.
    • Linker: joins several *.o files into an executable program.
    • Loader: code that loads an executable into memory and starts it running.

提交回复
热议问题