COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Machine Code uses mnemonics to represent instructions
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -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-2: -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-3: -Mnemonic codes are widely used in computer programming and communications system operations to specify instructions.

Detailed explanation-4: -Assembly languages A much more human friendly rendition of machine language, called assembly language, uses mnemonic codes to refer to machine code instructions, rather than using the instructions’ numeric values directly, and uses symbolic names to refer to storage locations and sometimes registers.

There is 1 question to complete.