ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Code written in a high-level language is usually less portable than code written in a low-level language.
|
|
Code written in a high-level language is generally more difficult to maintain than code written in a low-level language.
|
|
Code written in a high-level language is usually better optimized for particular hardware than code written in a low-level language.
|
|
Code written in a high-level language can generally make use of more abstractions than code written in a low-level language.
|
Detailed explanation-1: -High-level languages require the use of a compiler or an interpreter for their translation into the machine code. Low-level language requires an assembler for directly translating the instructions of the machine language. These languages have a very low memory efficiency.
Detailed explanation-2: -The most fundamental difference between the two is that low-level languages are closer to the system hardware and require the knowledge of hardware to write the instructions; whereas high-level programming languages are the machine independent languages that do not require the hardware knowledge to write instructions.
Detailed explanation-3: -What is the difference between low-level and high-level programming languages? Low-level is binary, made up of combos of 1’s and 0’s. High-level is compiled and run in the computer’s native language, but can be understood by humans.
Detailed explanation-4: -Languages like C, C++, Python, and Java are high-level programming languages. Machine-level language is a low-level language that deals with 0s and 1s whereas assembly-level language lies between low-level language and high-level language, it is more of an intermediary language.