When a Programmer wrote a program, then how it is feeded to the computer and how it actually works?
So, this article is about the process how the program code that we write in any text editor is feeded to computer as we all know computer works on only two numbers that is 0 or 1.
Let’s talk about it abstraction by abstraction starting from writing code in any text editor.
- We write code in text editor using any language like C++, JAVA, Python etc.
- This code is given to the compiler and it actually converts it to assembly code that is very close to machine hardware as it depend on instruction set which is then converted to binary that is 0 and 1 which actually represent digital voltage feeded to transistors inside the chip.
- Now we have voltages which is actually required to run the hardware.These voltages actually connect the correct circuitry inside the chip and perform that specific task for example addition, subtraction etc .All these operations are done by combination of little transistors if we go into low level or flip-flops which are combination of gates and gates are combination of transistors. So, it all started with the invention of transistors.
- The chip has lot of circuits inside it to perform various task like arithmetic nd logical task.
The computer hardware also contain RAM which is another chip which can store data temporary and Hard disk which can permanently store data.
- Operating system is also responsible to feed the software to the right hardware like keyboard, mouse, screen etc.
The following picture depict the whole process:
- Human - Computer interaction through the ages
- Hardware architecture (parallel computing)
- Lex Program to remove comments from C program
- Java Program to take Screenshots
- 8085 program to add two 8 bit numbers
- 8085 program to add two 16 bit numbers
- 8086 program to add two 8 bit BCD numbers
- 8085 program to add 2-BCD numbers
- Program for hexadecimal to decimal
- 8086 program to multiply two 16-bit numbers
- 8086 program to add two 16-bit numbers with or without carry
- 8085 program to check whether the given number is even or odd
- 8085 program to swap two 8-bit numbers
- 8085 program to reverse 8 bit number
- 8086 program to subtract two 8 bit BCD numbers
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.