Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Interaction of a Program with Hardware

  • Last Updated : 14 Nov, 2018

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.

  1. We write code in text editor using any language like C++, JAVA, Python etc.

    GeeksforGeeks Courses

  2. 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.

  3. 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.

  4. 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.

  5. 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:

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!