ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Assembly
|
|
Pascal
|
|
Prolog
|
|
Scheme
|
Detailed explanation-1: -Assembly languages are considered a low level language, while high-level languages such as C, Java, or Python use 0’s and 1’s instead of numbers, symbols, and abbreviations.
Detailed explanation-2: -Example of assembly language “EAX, ‘’ “EBX” and “ECX” are the variables. The first line of code loads “3” into the register “eax.” The second line of code loads “4” into the register “ebx.” Finally, the last line of code adds “eax” and “ebx” and stores the result of the addition, which is seven, in “ecx."
Detailed explanation-3: -Low-level language is also known as Machine Language. The machine language contains only two symbols 1 & 0. All the instructions of machine language are written in the form of binary numbers 1’s & 0’s. A computer can directly understand the machine language.