List the cousins of compiler and explain the role of any one of them.

The Cousins of Compiler are listed as below:

  • Pre-Processor
  • Assembler
  • Linker
  • Loader

Below are the roles of cousins of compiler:

  1. Interpreter: An interpreter is an application that converts high-level language code directly to machine code line by line and executes it immediately – unlike compilers which translate the entire program at once before execution – thus providing immediate feedback and interactive debugging – making interpreters ideal for rapid prototyping, experimentation and environments which demand instant results.
  2. Assembler: An assembly language program converts machine code to assembly language for easier human reading, using mnemonics instead of machine instructions as machine instructions are more difficult for humans to decipher than assembly. Assemblers play a vital role in the creation and maintenance of device drivers and system software by providing direct access to hardware resources.
  3. Linker: A linker is a utility used to combine several object files created by a compiler into one executable file. It resolves references between modules or libraries and ensures all functions and variables required are linked together; linkers also handle memory allocation and address resolution to ensure executables run seamlessly on target platforms.
  4. Loader A loader is responsible for loading executable files into memory for execution by users or system utilities, usually after being created by linkers. After creating an executable program from links, loaders load it into memory to execute. They also resolve external references and initialize its execution environment – an integral component of operating systems which facilitate program execution by both users and utilities alike.

These cousins of compiler play vital roles, compilers are a important part of the software development process, from translating code to machine readable instructions to linking and executing programs, these cousins of compilers play key roles.


Click Here To Get More GTU Important Questions Solution

Leave a Reply