How programming Language Works in less than 2mins

Prakash Pawar
2 min readOct 31, 2018

--

Hey, i am Prakash Pawar and today i will try to explain you how Programming Language works inside the computers.

Computer only understands instruction in Machine Language Code.

But there is a catch that it's harder to write program in Machine Language code.
So we have to write program in Higher level languages like , Java, C++, Ecmascript , Python and more.
The program written in Higher level language is called Source Code.
But we cannot execute this Source Code directly in 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.
1. Compiler
It is used for Higher Level Language.
It reads and execute whole program in once and then throw errors if any occurs.
Higher Level Language which uses compilers are: C, C++, C#, Pascal, Java and more.

2. Assembler
It is used for Assembly Level Language.
It reads Assembly Level Language instructions from given input.

3. Interpreter
It is used for Higher Level Language.
It reads and execute source code line by line and throws error after every line if any occurs.
Higher Level Language which uses interpreter are: 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)

Thanks for your 2 minutes and 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 claps, comments and retweets.

--

--

Prakash Pawar

Curious to learn about universe and beyond. Learning Web Development.