List the cousins (context) of compiler and explain the role of any one of them.
- The cousins of compiler are :
- Pre-processor
- Assembler
- Linker
- Loader
1. Pre-processor :
- Pre-processor produce input to compiler they may perform the following functions :
a) Macro Processing :
- A pre-processor may allow user to define macros that are shorthand for longer constructs.
b) File Inclusion :
- A preprocessor may include the header file into the program text.
c) Rational Pre-processor :
- Such a preprocessor provides the user with built in macro for construct like while statement or if statement.
d) Language Extensions :
- this processors attempt to add capabilities to the language by what amount to built-in macros.
- Ex: the language equal is a database query language embedded in C.
- statement beginning with ## are taken by preprocessor to be database access statement unrelated to C and translated into procedure call on routines that perform the database access.
Fig.Context Of Compiler
Follow Us