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.
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.
The topics we will cover in this post are :
- what is interpreter.
- what is compiler.
- 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.
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