Hey, I am Prakash Pawar and today I will try to explain to you how Programming Language works inside the computers.
The computer only understands instructions in Machine Language Code.
But there is a catch that it’s harder to write programs in Machine Language code.
So we have to write programs in Higher level languages like Java, C++, Ecmascript, Python and more.
The program written in a Higher level language is called Source Code.
But we cannot execute this Source Code directly on the computer.
So we have to convert it into Machine Language Code.
We need some special translators which are programs basically written in Machine Language Code.
And these translators are called Language Processors.
There are 3 types of Language Processors.
Compiler
It is used for Higher Level Language.
It reads and executes the whole program at once and then throws errors if any occur.
Higher Level Language which uses compilers is C, C++, C#, Pascal, Java and more.
Assembler
It is used for Assembly Level Language(Mnemonic codes).
It reads Assembly Level Language instructions from a given input.
Interpreter
It is used for Higher Level Language.
It reads and executes source code line by line and throws errors after every line if any occurs.
Higher Level Language which uses interpreter as Ecmascript, VB Script, Python, Perl and more.
Here I created a FlowChart to understand the process:
(Below in image, Yellow is Compiler, Blue is Assembler, Green is Interpreter)
That’s it now you know what’s going on inside the machine with your code. If you liked this article let me know via comments and you can retweet. You can also read this on Medium.
Thanks for reading this, If you found this article useful read more at thevenice, and Let me know if find any improvisation in this article, I am Prakash Pawar and you can follow me on Twitter & Instagram. Thank you.
Tags:
Leave a Reply