Difference between compiler and interpreter and assembler and 4GL & 3GL

Fourth generation language, Assembler, Compiler, and Interpreter

BBA | BBA-TT | BHCM

Fourth generation language (4GL – 1985’s to till now)

Fourth generation language (4GL) is more non-procedural, object-oriented and conversational than prior language. It is also non-structural language. It can be employed directly by the end user or less skilled programmer to develop computer application more rapidly than the conventional programming language. Some advantages and disadvantages of this language as follows:

Advantages:

  • Fourth generation language (4GL) is friendly for users.
  • This language is easy to develop programs.

Disadvantages:

  • Programs run slower because it is heavy in size and design.
  • Required long time to convert into machine code.

 

Difference between third-generation language (3GL) and fourth generation language (4GL)

Difference symbols 4gl 3gl


3GL 4GL
It stands for third generation language. It stands for fourth generation language.
The stepwise instructions are written. Requirement oriented instruction is written.
Difficult to learn. Easy to learn.
Difficult to debugging. Easy to be debugging.
Typically file oriented. Typically, database oriented.
Requires specification of how to perform the task. Requires specification of what task is to be performed.
For e.g. programming in C. Structured query language (SQL).

Difference between three translators

Translators are the system software that is used to translate the source code into object code (machine code). Generally, there are three types of translators compiler, interpreter and assembler. These are all translators are interdependence and not interdependence to each other. For it, it as given below:

Compiler Interpreter Assembler
It translates the entire program first and translates it into machine code. Also, it translates the program line by line. Similarly, it converts the entire program into machine code.
It converts the entire program to machine code when all the syntax errors are removed, and execution takes place. Each time the program is executed when every line is checked for syntax errors and converted to equivalent machine code. Same as the compiler i.e. (It converts the entire program to machine code when all the syntax errors are removed, and execution takes place.)
Slow for debugging. Faster for debugging. Faster for debugging.
Overall execution time is less. It is overall execution time is more. Overall execution time is more than the interpreter.
It creates only one object program after executing of the program. It does not create an object program. Same as compiler.
It translates high-level language into machine code. Same as the compiler. It translates assembly level language into machine language.

For offline read download pdf file Fourth generation language

Also, read

Four levels of Marriage is a Private Affair

Journal entries solution

Leave a Comment

Your email address will not be published. Required fields are marked *