Now you can Subscribe using RSS

Submit your Email

17 February 2016

Types of Programming Languages

LAKS Tutorials

In general we have different types of languages like English,Telugu,Hindi,etc.. These all are our daily life communication languages .Same way in programming we have to interact with different types of computers and mobile phones,etc. for those purpose in programming we have following types of langues.Those are listed below.
We have 3 types of Languages 

1. Low Level Language.
2.High Level Language.
3. Middle Level Language.

We have already learn the low level language features of c language and its applications. In this chapter we learn what is exactly Low level Language.


What is Low level language in Computer Science

  1. Machine Under stand able language.
  2. Assembly is common high level language.
  3. Internal machine code Independent.
  4. Fast to run but slow to write & Understand.

what is Machine level language

  1. Machine code is the only language microprocessor can process directly without a previous transformation.
  2. Currently programmers never write programs directly in machine code,because it requires attention to numerous which a High level language would handle automatically.
  3. Low level language requires memorizing or looking up numerical codes for every instruction that is used.
  4. For this reason second generation programming languages one abstraction level on top of the machine code.

Example

Below is Example function in 32bit -X86 machine code to calculate the nth Fibonacci series number. 8B542408 83FA007 06B80000 0000C383

Summary of low level languages

Low level languages are machine understandable, difficult to write,requires more efforts to code and debug.

High Level Language

  1. First High level language was developed in the 1950s.
  2. High level language is Human Understandable Language.
  3. English is common Example of High Level Language.
  4. High level language is Internal Machine Code Independent.
  5. High level language is Program Oriented Language.
  6. High level language is Developed for Providing GUI Inter face.

C program can be considerd as High level/ Low level language

  • In early 70's, C programming was considered as High Level Language because it was Capble of evaluating ,expressions,parenthesis recursive functions etc.
  • Now a days, c may be considered as "Low level Language" by some programmer because it lacks a large runtime-system.

Execution Models of High Level Language

1.Interpreted:

  • Interpreted languages are read and then executed directly,with no compilation stage.
  • program is read line by line and convert it into machine code and executes it.[Interpreter].

2.Compiled:

Language are transformed into an executable form before running.There are Two Types of Compilations.

2.1 Machine Code Generation

Some compilers compiles source code directly into machine code. Machine code is generated by using compiler it is called as "truly compiled languages".

2.2 Intermediate Representations

Language is converted into Machine level language and further optimized and reused.

3.Translated

  1. A language may be translated into a lower- level programming language for which native code compilers are widely available.
  2. The C programming language is a common target for such translators.

Some High Level Languages:

  1. Ada
  2. Algol
  3. LISP
  4. Pascal
  5. Java
  6. C#

Middle level Language

C programming bridges gap between traditional Machine Understandable Machine Level language and more Conventional High Level Languages. User can Use C Language to do system programming for writing operating system as well as application programming. "Middle level languages are closely related to Machine as well as Human."

Why c is middle level language ?

  1. C Programming supports Inline Assembly language programms.
  2. Using inline Assembly language feature in C we can directly access system registers.
  3. C programming is used to access memory directly using pointers.
  4. C programming language supports High level Features.
  5. It is more user friendly as Compare to Previous languages So c programming language is a Middle level language.

LAKS Tutorials / Author & Editor

RAM.P is Founder of the LAKS TUTORIAL.The Main AIM of the author is providing basics to the beginners of the program to imrove their knwoledge

2 comments:

  1. This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Love from

    ReplyDelete

Coprights @ 2016, Blogger Templates Designed By Templateism | Templatelib