Working of a Computer Program
Have you ever wondered how does a simple code of few line makes the hardware function ?
You may think of a button on the touch-screen of your smartphone, when you touch it a command is sent to glow the flashlight of your smartphone. An another app on your device may play music when you touch at the same location on the screen as before. In a lot of sophisticated machines, softwares are used to bring out and control the mechanical functioning of the machines. So what's going on inside the device that brings the actual visible physical functioning in any device.
This answer may help you a little bit.
There are a lot of languages that can be used to design a particular software. Source code is the actual code written by the programmer which can be in any computer language. The source code is in human-understandable language referred to as HLL (high level language) which can't be directly executed and run on any hardware. It needs to be converted into LLL (low level language) which is computer-understandable form.
This can be achieved by using a compiler or interpreter. Since computer is an electronic device, it understands only ON and OFF. In simple word it understand only binary language which comprises of 0's and 1's, 1 for ON and 0 for OFF.
A sequence of 0's and 1's produces an impulse which is used as signal for the CPU to perform a particular task. Every source code is eventually broken down into complete sequence of binary digits 0 and 1. A particular sequence of binary digits may send an impulse to CPU that sends a signal to screen that prints a certain character on the screen. Another sequence may result into an impulse which allows you to input a number through keyboard.
Everything inside your device is governed by the digital singnals composed of binary digits sequence. That's All.
Comments
Post a Comment