Every Programming Language needs converted into the machine code before
executing. Because machine can't understand our code written into the high
level programming language.
For this process there are interpreter and compiler both available.
Interpreted language is a programming language in which programs are 'indirectly' executed ("interpreted") by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then 'directly' executed by the host CPU. Theoretically, any language may be compiled or interpreted, so this designation is applied purely because of common implementation practice and not some essential property of a language. Indeed, for some programming languages, there is little performance difference between an interpretive- or compiled-based approach to their implementation.
But interpreter direct execute the code. So, a interpreted language considered faster than a compiled language.
Whereas if you are writing a script to store on the computer for later use, Compiler is the choice.
To learn more in detail about Programming Language , Computer Language .
Visit us @ tccicomputercoaching.com
Call us @ 9825618292
For this process there are interpreter and compiler both available.
Interpreted language is a programming language in which programs are 'indirectly' executed ("interpreted") by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then 'directly' executed by the host CPU. Theoretically, any language may be compiled or interpreted, so this designation is applied purely because of common implementation practice and not some essential property of a language. Indeed, for some programming languages, there is little performance difference between an interpretive- or compiled-based approach to their implementation.
Why is a interpreted language considered faster than a compiled language?
Compiler converts source code into the machine code then execute the code.But interpreter direct execute the code. So, a interpreted language considered faster than a compiled language.
When do use compiler and do use interpreter?
If you are working on short program which doesn't need to be saved, you use Interpreter. Usually interpreter is use to test a piece of code which you want the result of computing instantly.Whereas if you are writing a script to store on the computer for later use, Compiler is the choice.
To learn more in detail about Programming Language , Computer Language .
Visit us @ tccicomputercoaching.com
Call us @ 9825618292
No comments:
Post a Comment