SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Interpreter
|
|
Linker
|
|
Assembler
|
|
Compiler
|
Detailed explanation-1: -Compiler-It is a software program that converts a program written in High-level language to a low-level language(object/ target language).
Detailed explanation-2: -A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer.
Detailed explanation-3: -High-level compilers do not convert source code into assembly language. Rather, they convert it into object code/machine code directly. Assembly language is a human-readable version of object/machine code, designed for a programmer.
Detailed explanation-4: -A compiler is a program that converts high-level language to assembly language. Similarly, an assembler is a program that converts the assembly language to machine-level language. Let us first understand how a program, using C compiler, is executed on a host machine.