The Difference of Interpreter and Compiler

What is Interpreter ?

Interpreter is a software that capable to execute the programming code (written by programmer) and translated it into the Machine Language, so the machine do what the programmer instructed. The statements that made by Programmer is executed line by line, while following the logic inside the code.

the process is different with the compiler, where the compiler, the result is only one statements in Machine Language.

Interpreter’s Flow

For Example :

Have you tried PHP ? When we make a program using PHP, the source code can be running directly without the need to change (“compile”) it first into the different files.

What is Compiler ?

Compiler is a software that translated the source code into the object code. Compiler unite the entire code, collect, and then re-arrange it. Compiler needs time to make the program that can be executed by computer, program that executed by compiler can be running faster than the program made by Interpreter. Beside of it, it’s independent.

Compiler’s flow

For Example :

Have you tried to program with C Language ? If so, you must be familier with the compiler. When we compiler our source code into program, there will be some generated file, including the .exe file. The generated file function is unite the entire code you type, collect it and re-arrange it so the computer understand how to run your programs.

 

Have you still do not understand ? Post it into the comment and i will do my best explain it as details as possible to you 🙂

reynold

A gamer who dreams make a games! thats me. I'm a Lone Wolf Game Developer, because i can't find an artist and modeller to work with me in my projects. But somehow someday, i'll found them as i make my Game Developer Company.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *