COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Loader
|
|
Interpreter
|
|
Cross-compiler
|
|
Preprocessor
|
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: -Preprocessor: The preprocessor is considered as a part of the Compiler. It is a tool which produces input for Compiler.
Detailed explanation-3: -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-4: -From where it takes its input from? Explanation: A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams. 5. Parsers are expected to parse the whole code.