COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Does the compiler program translate the whole source code in one step?
A
No
B
Yes
C
Depends on the Compiler
D
None of the above
Explanation: 

Detailed explanation-1: -3) Does the compiler program translate the whole source code in one step? Explanation: The compiler is that program which translates the whole high-level code into the machine code at once.

Detailed explanation-2: -There are three steps: translation, compilation (assembly), and link-edit. Figure 1 shows these 3 steps. (Translator input) is the file that contains your source program.

Detailed explanation-3: -The correct answer is Compiler.

Detailed explanation-4: -A compiler converts the source code to bytecode, an intermediary code that bridges the gap between the high-level source code and low-level machine code. The compiler is a special type of program that translates statements in the source code to bytecode, machine code or another programming language.

There is 1 question to complete.