Thursday, February 5, 2009

Levels of programming languages

There are many types of programming languages, and all of them consist
of different levels. There are three levels of programming languages:

Low-level programming languages
Medium-level programming languages
High-level programming languages
Very high-level programming languages

Firstly, let’s take a look at the low-level programming languages. A low level programming language does not need a complier or interpreter to run. Low-level programming languages are divided into two categories:

First generation: These programming languages are the only languages that a processor can understand directly, and is machine code. Writing code in machine code is highly difficult with it requiring alot of attention to the details.

Second generation: Assembly is an example of low-level second generation programming languages. This is easier to program in because it is not the microprocessor's native language but rather the programmer must understand registers and instructions.

Next, the medium-level programming languages. These programming languages are comprised of high-level and low-level language features. An example of this would be C++.

Thirdly, high-level programming languages are programming languages which are easy to use, portable and hide details of CPU operations. An example of this is BASIC. These come in three execution modes:

Interpreted- Interpreted languages are read and executed directly.

Compiled- Compiled languages are transformed into an executable file form and then run.

Machine code- The source code is directly compiled into machine code.

Translated- The source code is translated into a low-level programming language syntax.

Lastly, very high-level programming languages are programming languages which are used by professional programmers to increase productivity. A line of code in a very high-level programming language would translate to many lines of code in the lower levels of programming languages.

These are the main levels of programming languages. I hope this adds to your repertoire of knowledge.

No comments: