ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
ASSEMBLER
|
|
INTERPRETER
|
|
COMPILER
|
|
PREPROCESSOR
|
Detailed explanation-1: -#include Preprocessor Directive Lines that begin with # are processed by the preprocessor before the program is compiled. This line notifies the preprocessor to include in the program the contents of the input/output stream header <iostream>.
Detailed explanation-2: -A compiler translates a program written in a high-level language into Machine language or that transforms computer code written in one programming language into another programming language.
Detailed explanation-3: -Compilers analyze and convert source code written in languages such as Java, C++, C# or Swift. They’re commonly used to generate machine code or bytecode that can be executed by the target host system.
Detailed explanation-4: -The C preprocessor is a macro processor that is used automatically by the C compiler to transform your program before actual compilation. It is called a macro processor because it allows you to define macros, which are brief abbreviations for longer constructs.