Via Fetch-Execute Cycle.: Python For Everyone - University of Michigan How Are Computer Instructions Executed?
Via Fetch-Execute Cycle.: Python For Everyone - University of Michigan How Are Computer Instructions Executed?
Program files (Python/ Visual Basic) are written and created in the Secondary Memory. WORD and other
files are also created in the Secondary
Memory. It is then loaded into the main
memory and translated. At this point
and even before that your CPU is asking
for WHAT’S NEXT? Because it needs
more instructions to work with. Here,
the first instruction is sent from the
Main Memory to the Central Processing
Unit. Then after that is executed
(done), CPU again asks WHAT’S NEXT?
And then the second instruction is sent. Similarly, third and more instructions are sent the same way.
When the Python program is written it comes into the Main Memory in Machine Language. But our
programs are in Python so the program which translates them is known as a COMPILER/INTERPRETER.