COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is not an advantage of using a low level language?
A
Makes more efficient use of primary memory.
B
Tailor a program to a specific piece of hardware.
C
To perform a task very quickly.
D
To enable the program to be run on multiple platforms.
Explanation: 

Detailed explanation-1: -Disadvantages of Low-Level Languages They are sometimes time-consuming because we need to manage the memory and complexity of the instructions. They are comparatively less portable than high-level languages as they have to be hardware specific.

Detailed explanation-2: -The advantages of low-level languages are: They allow a programmer to create optimised programs. When a computer system has limited resources (processing power and memory) low-level languages allow a programmer to more directly control how the resources are used.

Detailed explanation-3: -Low-Level Language is machine-friendly, as machines in binary code 0s and 1s can easily understand the instruction. High-level languages are more programmer-friendly. LLL is challenging to learn and execute. HLL is simple to learn compared to low-level language.

There is 1 question to complete.