COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

TYPES OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Needed to convert programs written in high-level languages into the machine code that a computer understands.
A
An instruction set
B
Assemblers
C
Translators
D
None of the above
Explanation: 

Detailed explanation-1: -A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.

Detailed explanation-2: -Compilers convert high-level language code to machine (object) code in one session. Compilers can take a while, because they have to translate high-level code to lower-level machine language all at once and then save the executable object code to memory.

Detailed explanation-3: -High-level language programs must be translated into machine language before they can be executed. (Machine language instructions are encoded as binary numbers that are meant to be used by a machine, not read or written by people. High-level languages use a syntax that is closer to human language.)

There is 1 question to complete.