Compiled Language vs Interpreted Language – The Crazy Programmer

Language has always been the most effective medium of communication. Good communication is always a bridge from confusion to clarity. Not only humans, each and every element of this nature too have their own language of speech to share their emotions and feelings with the other. At times even a gentle breeze speaks a hundred matters to us.Today in this 21st era, the era of technology, the computers to have languages to communicate with us humans…the programming language.Programming language can be classified into two types:Compiled languageInterpreted languageWhat is Compiled Language?The programming languages that the target machine can read without the help of another program. Generally, humans cannot understand the code of this languageEg: C,C++,CLEO,C#.What is Interpreted Language?The programming languages that the target machine cannot read its own. The machines always need another program for the conversion of instructions into their readable form.Eg: JavaScript, Python, BASIC, etc.Basically, keywords of any programming language need to be converted into machine language, so that the code can run and give us the output through the system.The methodology of machine language is always beyond human intelligence. So here comes the role of Translator software.Translator SoftwaresTranslator software converts the keywords of programming languages into machine language and makes it run to get the output.Normally the translator software works in two ways:As a compilerAs an interpreterAs a compiler what translator software does is that:It considers all the instructions in the Program and converts the source code into an equivalent machine code.For e.g.: C, C++, CLEO, C#… use a compiler so these come under the category of Compiled languages.In the role of an interpreter, the translator software takes one instruction at a time and it executes it in real time. This is actually an interactive way of executing a program.For e.g.: JavaScript, Python, BASIC, etc use an interpreter so these come under the category of Interpreted languages.Simply diagrammatically the idea of translator software can be represented like this.Compiled Language vs Interpreted LanguageCompiled LanguagesInterpreted LanguagesThe compiler works on the complete program at once. It takes the entire program as inputAn interpreter takes programs line to line. It takes one statement at a time as input.Generates the intermediate code known as the machine code or object code.An interpreter doesn’t generate intermediate code known as the machine code.Compiler languages are more efficient but are difficult to debug.Interpreted languages are less efficient but easy to debug. This specialty makes it an ideal choice for new students.The compiler does not allow a program to run until it is completely error-free.The interpreter runs the program from the first line and stops execution only if it encounters an error.Compile once and run any time. The compiled program need not be compiled every time.Every time they run the program it is interpreted line by line.Errors are reported after the entire program is checked syntactical and other errors.Error is reported when the first error is encountered. The rest program remains unchecked till the error is solved.The compiled program takes more memory because the entire object code has to reside in memory.Interpreter does not generate intermediate memory code. Therefore interpreter programs are memory efficient.E.g.: C, C++, CLEO, C#.E.g.: JavaScript, Python, BASIC, etc.ConclusionIn the result of the process of interpreting or compiling lies the difference between interpreted and compiled language. Always an interpreter produces a result from a program; meanwhile a compiler produces a program written in assembly language.Then it’s the turn of the assembler of architecture to convert the resulting program into binary code. For each individual computer, depending upon its architecture, assembly language varies. Consequently, only on computers that have the same architecture as the computer on which they were compiled, compiled programs can run.

Coded at

Share your love

One comment

  1. Ӏt is the beѕt time to make some plans for the fսture and it іѕ timе tо be һappy.
    I have read thiѕ post and if I could I wish to sugցest you some interesting things or ɑdvice.
    Maybe yοu can write next articles referring to
    this article. I want to read even mߋre things abоut it!

Leave a Reply