Programming Languages


Types of Programming Languages

There are two types of programming languages commonly used: Compiled and Interpreted.

Compiled Language

In a compiled implementation of a language, a compiler will translate the program directly into code that is specific to the target machine, which is also known as machine code. Machine code is code that is specific to a given processor and operating system. Then the computer will run the machine code on its own.

Interpreted Language

In an interpreted implementation of a language, the source code is not directly run by the target machine. What happens instead is that another program reads and then executes the original source code. This other program is also known as the interpreter. The interpreter is usually written specifically for the native machine.

Comparison Table

Compiler Interpreter
Scans the entire program and
translates it as a whole into machine code.
Translates program one statement at a time.
It takes large amount of time to analyze the source code
but the overall execution time is comparatively faster.
It takes less amount of time to analyze the source code
but the overall execution time is slower.
Generates intermediate object code
which further requires linking, hence requires more memory.
No intermediate object code is generated,
hence are memory efficient.
It generates the error message only after scanning the whole program.
Hence debugging is comparatively hard.
Continues translating the program until the first error is met,
in which case it stops. Hence debugging is easy.
Programming language like C, C++ use compilers. Programming language like Python, Ruby use interpreters.

List of Compiled Languages

COBOL

C

C++

C#

FORTRAN

List of Interpreted Languages

Visual Basic

BASIC

Java

Javascript

Hex to Binary

Spreadsheets (e.g. Microsoft Excel)

References

http://techwelkin.com/compiler-vs-interpreters
http://www.htmlgoodies.com/tutorials/tables/article.php/3479851
http://techwelkin.com/compiler-vs-interpreter

Link To:

Home Page