COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Third generation language is machine independent.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -This generation of languages is machine independent and has to be translated into machine language by a translator. The translator takes high level primitives and compiles a sequence of machine instructions to perform the required function.

Detailed explanation-2: -machine language (i.e., first-generation language), assembly languages (i.e., second-generation language), Cobol, Fortran, PL/I (i.e., third-generation language), MS Access, PowerBuilder (i.e., fourth-generation language), and.

Detailed explanation-3: -Machine languages are so closely related to the structure of a particular computer that they are said to be machine dependent. Programs written in machine language are not portable, that is, they may not be run on other computers with different machine languages.

Detailed explanation-4: -Third Generation (3GL) – high level language. It is machine independent which means it can run on any computer. Before the computer can understand execute it, the program has to be converted to machine language.

Detailed explanation-5: -Assembly language is the first generation computer language. 2. Machine language is the second generation computer language. 3.

There is 1 question to complete.