COMPILER DESIGN

CODE GENERATION

ROLE OF CODE GENERATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Assembly language has mnemonics .
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Assembly language uses a mnemonic to represent, e.g., each low-level machine instruction or opcode, each directive, typically also each architectural register, flag, etc. Some of the mnemonics may be built in and some user defined. Many operations require one or more operands in order to form a complete instruction.

Detailed explanation-2: -Assembly language is one level above machine language. It uses short mnemonic codes for instructions and allows the programmer to introduce names for blocks of memory that hold data. One might thus write “add pay, total” instead of “0110101100101000” for an instruction that adds two numbers.

Detailed explanation-3: -True. Assembly language is a low-level language which provides a way for humans to write machine-readable instructions in a more human-friendly form. Each instruction in assembly language relates to a single language instruction, which can be executed directly by the computer’s hardware.

Detailed explanation-4: -Assembly Language Uses Mnemonic Codes or Symbols instead of binary numbers. The only language directly understood by a computer.

There is 1 question to complete.