Recent Posts

Wednesday 17 January 2018

Difference between compiler and interpreter


C is a general purpose programming language.In the previous post we learnt about what is high level language and what is low level language.

The topics we will cover in this post are :
  1. what is interpreter.
  2. what is compiler.
  3. Difference between compiler and interpreter.

What is interpreter:

1.At a time interpreter execute one statement of the high level language.
2.Interpreter is one type of translator used to translate a high level language into its machine language program.
3.A computer can execute only machine language program directly.
4.It takes one statement of the high level language program, translate program, translate it into machine language instructions and then execute the resulting machine language instructions immediately.
5.That is in case of interpreter,the translation and execution processes alternate for each statement encountered in the high level language program.
6.interpreter is slower than compiler.

What is compiler:

1.compiler takes the whole source program written in high level language and translate it into machine language.
2.A computer can execute only machine language program directly.
3.Hence a high level language program must be converted translated into its machine language program before it can be executed on a computer.
4.This translation is done with the help of translator program called compiler.
5.Hence compiler is a translator program that translate a high level language into its machine language program.
6.compiler is faster as compare to interpreter.

Difference between compiler and interpreter:

I hope you will understand What is compiler and interpreter and the difference between compiler and interpreter.If you like this post please share on facebook.

0 comments:

Post a Comment

Followers

Popular Posts

Categories

social media

Text Widget

Powered by Blogger.

About Me

My name is junaid khan and i am a full time blogger and author of a blog tutorial called tutorialpointsolution.

String function

In the previous post we learn about what is String .we know that string is a collection of two or more characters.In string we can store al...

Search This Blog

Technology

Adbox

Recent Post

Breaking

Recent In Internet

Comments

Facebook

Pages

Comments

Pages

Recent

Pages

Technology