Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
31 views

Via Fetch-Execute Cycle.: Python For Everyone - University of Michigan How Are Computer Instructions Executed?

The document discusses the fetch-execute cycle by which computer instructions are executed from programs stored in secondary memory. It explains that programs written in languages like Python and Visual Basic are first stored in secondary memory, then loaded into main memory where they are translated by a compiler or interpreter into machine language. The CPU then fetches and executes each instruction sequentially, asking "what's next?" and loading the next instruction from main memory after each one is complete.

Uploaded by

SamyyShaikh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Via Fetch-Execute Cycle.: Python For Everyone - University of Michigan How Are Computer Instructions Executed?

The document discusses the fetch-execute cycle by which computer instructions are executed from programs stored in secondary memory. It explains that programs written in languages like Python and Visual Basic are first stored in secondary memory, then loaded into main memory where they are translated by a compiler or interpreter into machine language. The CPU then fetches and executes each instruction sequentially, asking "what's next?" and loading the next instruction from main memory after each one is complete.

Uploaded by

SamyyShaikh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PYTHON FOR EVERYONE – UNIVERSITY OF MICHIGAN

How are computer instructions executed?

Via Fetch-Execute Cycle.

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.

1. Python Sequential Steps

2. Python Conditional Steps


3. Python Repeated Steps

You might also like