COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Assembly langauge is written using ____
A
Binary/hexadecimal
B
English-like key words
C
Plain English
D
Abbreviated mnemonic keywords
Explanation: 

Detailed explanation-1: -In assembly language, mnemonics are used to specify an opcode that represents a complete and operational machine language instruction. This is later translated by the assembler to generate the object code.

Detailed explanation-2: -In assembly language, a mnemonic is an abbreviation for an operation. The mnemonic is used so that the programmer does not have to remember the exact numbers in machine code needed to tell the computer to do something.

Detailed explanation-3: -Assembly language uses mnemonics to represent instructions. Writing in mnemonics is easier for programmers because they are usually brief representations of the commands. They are quicker to write than binary and it is easier to spot mistakes.

Detailed explanation-4: -Mnemonics are the names for the symbols used in assembly language. A phrase, symbol, or word used to define or identify a computing function is known as a mnemonic. Assembly language enables programmers to write code that corresponds to the machine instructions that a given processor may execute.

There is 1 question to complete.