COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which computer program accepts the high-level language and converts it into assembly language?
A
Interpreter
B
Linker
C
Assembler
D
Compiler
Explanation: 

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.

There is 1 question to complete.