What are Compiler and Interpreter? Linking-Loading Method and Interpretation method.

Kishan Tongrao
1 min readJul 3, 2021

Hello, my name is Kishan Tongrao. Today we are going into another basic concept.

Photo by Michael Dziedzic on Unsplash

What is Compiler?

  • A compiler is a program that is only responsible for carrying out a translation, not the program execution.
  • Here all program statements or expressions are compiled(It is the process of creating an executable program).
  • Due to the above statement, the compiler is faster than the interpreter.
  • It follows the Linking-Loading method.

What is Linking-Loading method?

  • Loading – The process of bringing the program from secondary memory to primary memory.
  • Linking – The process of establishing the connections between all the modules or functions of the program so that the complete program can run properly is called Linking.

What is Interpreter?

  • An Interpreter is designed to both translate and execute.
  • Here each line of code is converted into machine code.
  • Due to the above statement, the Interpreter is slower than Compiler.
  • It follows the Interpretation method.

What is Interpretation method?

  • Here each line is passed to the interpreter. Where the line gets compiled and ready for execution.

Enjoy !

Contact

Email — tongs.the10@gmail.com

LinkedIn — linkedin.com/in/kishan-tongrao-6b9201112

--

--