Professional Documents
Culture Documents
Computer Languages
Computer Languages
Start
FIFTH
THIRD GENERATION FOURTH GENERATION GENERATION
LANGUAGE LANGUAGE LANGUAGE
The fourth-generation languages, Based on solving problems
This language uses English
or 4GL, are languages that consist of
words and mathematical using constraints rather than
statements similar to statements in a
operators. algorithms.
human language. Fourth generation
Simple and user friendly languages are commonly used in Its more intuitive and
database programming and scripts commands are highly
HLL has to converted into examples include Perl, PHP, Python, sophisticated.
machine language by Translator Ruby, and SQL.30-Jun-2019
programs called Interpreters and
comlilers.
INTERPRETER
Interpreter:
Translator program that converts HLL program into machine language line by line,
executes the instructions and then repeats the procedure for the remaining instructions.
If errors found they are removed immediately. Converted form is not stored anywhere,
as generated during execution hence low memory utilization. Slow execution speed.
Interpreter
Program written in Program Converted
HLL into Machine language
Source Object
Code/Program Code/Program
COMPILER
Translator program used to convert HLL programs to machine language, whole
program at once. It generates the object code for the program along with the
list of errors. Execution speed is faster than Interpreter.
Comparison
Compiler Interpreter
Translates the whole program at once Translates line by line. Translates
Translates all executes in one go Executes . Moves the next line
for translation.
List of errors generated after complete Errors need to be removed as generated
translation
Object code stored. Higher Utilization Translated form not stored anywhere but
generated at time of execution. Low
memory utilization
Execution speed Higher Execution speed low