A computer program consists of instructions and data on which the instruction operates. How are the instructions of a program executed by a computer?
Answers
HERE IS YOUR ANSWER
a computer program maybe consisting of various functions and computations that it needs to execute...it also consists of instructions and data.. particularly information on which it needs to operate..
there ARE many ways by which a program executes..
in a very primary way.. any program is executed by the required source compiler..
or on a larger basis.. a program is executed via a central processing unit.. usually present within the system..
a computer requires certain programs and data for its proper functioning and this is done through a computer's central processing units..
there is always a sequence in the way the cpu executes any program..
HOPE THIS HELPS YOU
Answer:
Let us consider or assume that if you make a C software which is also known as executable file. Then, if you want to look this on you desktop. Then, we take executive file and in our hard disk and then we have to save the executive file in our computer hard disk then we double click on the the executive file and a copy of executive file is created and loaded in your RAM. As we know that RAM is a volatile memory if data is Vanish out from ramp after the data preserved in hard disk. The size of one instruction is 16 bits (fixed). The first instruction goes into the processor in memory unit (set of registers). The first instruction stores in the instruction register. There is a control unit in processor which read instruction and decode it and control unit give instruction to Arithmetic Logical Unit to work on that instruction. The Arithmetic Logical Unit is responsible to perform all Arithmetic and Logical operation and calculation.