COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which generation would create the fastest code to execute?
A
1st Generation (Low)
B
2nd Generation (Low)
C
3rd Generation (High)
D
None of the above
Explanation: 

Detailed explanation-1: -Techopedia Explains First Generation (Programming) Language The main advantage of programming in 1GL is that the code can run very fast and very efficiently, precisely because the instructions are executed directly by the CPU.

Detailed explanation-2: -The 1st Generation programming language is called machine code. It is a way of giving instructions in pure binary-i.e. the language the processor actually uses. Typing in machine code accurately is very difficult to do, and therefore very rarely happens.

Detailed explanation-3: -The Third Generation (3GL) Being programmer friendly, it was easier for programmers to read, code and maintain the code. Unlike assembly languages, the third generation languages are machine-independent and can run on different types of machines.

Detailed explanation-4: -An example of first-generation Machine Language is the machine language that contains instructions written in binary numbers.

There is 1 question to complete.