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 can be represented in assembly language using:
A
Mnemonics
B
Pneumatics
C
Nomanics
D
Psychotics
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: -Examples of mnemonics in assembly language include ADD (which odd data), MUL (which multiplies data), MOV (which moves data), JUMP (which performs a jump operation).

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.

There is 1 question to complete.