Saturday, 4 May 2013

Lesson 05 - High Level Language (Third generation Programming Language)

As we learnt in previous lessons Machine language and Assembly languages known as low level programming languages. The reason it known as low level programming language is it always depend on hardware. Therefore programmer had to find out the way to overcome with this problem. As a result, They found High level programming language.  A High level programming language is user friendly because its similar to English language.

Some examples of high level programming languages 
(Basic, COBOL, C and Pascal) 

Advantage of High Level Programming language,

Its really easy to learn High level program language than machine language and assembly language because instruction are more like English.

A Programmer easy to  read, write and maintain program written in High level program language.(High level language vocabulary similar to English language)

It's  not hardware depend its hardware independent programs written by high level language are easy to use another computer.

Compiler

Program written in high level language need to translate for execute. A computer need translation software called a compiler.

Each high level language has its own compiler which translate the source code to object code.

Ex : Compiler for COBOL is COBOL Compiler. Its only translate program written in COBOL programming language.

Function of Compiler
Click on Picture to Large 


















Linker

Program written in any program language uses predefined keywords such as PRINT, ACCEPT and etc.. these functionalists defined as libraries.
A library is collection of keywords and functionalists. Its stored to reuse for another programmers written by experienced programmers.

The Linker perform the task of linking the functionality of the keywords with object code.

Interpreter

Some high level program language use different type of translator program called as Interpreter. Interpreter takes source code and convert it to machine code but it doesn't save the generated object code. Therefore this process should repeat  each time before the program execute. So using Interpreter is time consume but easy for debugging cause error messages are usually specific and point out which the errors occur.

Comparing A Compiler and an Interpreter




Compiler
Interpreter
A compiler translates the entire program first and generates the object code, which can be executed later.
An Interpreter translates and executes one line of source code at a time
Object codes generates after the compilation is saved for future use. Therefore  programmer doesn’t want to compile the program again for generate object code ( Its make program execution fast)
Translate one line of code can’t be saved for future use. Programmer need to be translated every time before execution. ( It doesn’t make the program execution fast)
A Compiler detects and shows syntax error that related to entire source code.
 An Interpreter detects and shows error that related to a line of source code.

I would like to post few links related to some high level languages for further consideration.

BASIC - Refer this link to more information (Click Here)
COBOL - Refer this link to more information (Click Here)
C - Refer this link to more information (Click Here)




 If you like this post don't forget to LIKE US on FaceBook :  Career on Software Engineering ( VB.net )

Best Regards
We will welcome your comments, New Ideas and etc.. for improve this site.
Sumiya. DNIIT, SCJP, Bsc ( Hons )
Nothumbria University - Newcastle UK 
e-mail : sumiyalearns2you@gmail.com

No comments:

Post a Comment