COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

OVERVIEW OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
It is a tool that produces input for compilers.
A
Loader
B
Interpreter
C
Cross-compiler
D
Preprocessor
Explanation: 

Detailed explanation-1: -Preprocessor. A preprocessor, generally considered as a part of compiler, is a tool that produces input for compilers. It deals with macro-processing, augmentation, file inclusion, language extension, etc.

Detailed explanation-2: -Preprocessing manipulates the text of a source file, usually as a first phase of translation that is initiated by a compiler invocation. Common tasks accomplished by preprocessing are macro substitution, testing for conditional compilation directives, and file inclusion.

Detailed explanation-3: -A preprocessor is a program that processes its input data to produce output that is used as input to another program. The output is said to be a preprocessed form of the input data, which is often used by some subsequent programs like compilers.

Detailed explanation-4: -Cross Compilers. They produce an executable machine code for a platform but, this platform is not the one on which the compiler is running. Bootstrap Compilers. These compilers are written in a programming language that they have to compile. Source to source/transcompiler. Decompiler.

There is 1 question to complete.