Compiler, Interpreter, Linker & Loader in Python
Define Compiler, Interpreter, Linker & Loader in PYTHON
Compiler :
It is a software that translates a program written in a high-level language into machine language. This compiled program is called object code. The object code is an executable code which can run as a standalone code, i.e. it does not need the compiler to be present during execution. Every programming language, such as C, C++ and Java has its own compiler.
Interpreter :
While a compiler converts the whole source code into an equivalent object code or machine code, the interpreter reads the source code line by line and converts it into object code (i.e. a code understandable to the machine.
Linker :
It is a program that links different program modules and libraries to form a single executable program. A source code of a program is very large. It can consist of hundreds of lines of code. Before the execution of a program, all the modules of the program and the required libraries are linked together using a software called a linker. The compiled and linked program is called the executable code.
Loader :
This software is used to load and relocate and executable program in the main memory during execution. The loader assigns a storage space to a program in the main memory for execution.
Comments
Post a Comment