ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Makes more efficient use of primary memory.
|
|
Tailor a program to a specific piece of hardware.
|
|
To perform a task very quickly.
|
|
To enable the program to be run on multiple platforms.
|
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.