how does a computer program arrange transistors to run a program? In other words, if transistors are so small, how can a computer ever know how to create the circuit required to run a program?

859 views

how does a computer program arrange transistors to run a program? In other words, if transistors are so small, how can a computer ever know how to create the circuit required to run a program?

In: Technology

5 Answers

Anonymous 0 Comments

You’re kind of putting the cart before the horse… The transistors are arranged in a way that the programs can interact with them.

To put it simply, the program says.

1. Add memory block 1A to memory block 2A
2. If the result is greater than 42, then add result to memory block 1B.
3. If 1B divided by two has no remainder, then go to step 5, else go to step 4.
4. *Some other instructions that do stuff.*
5. *Some other instructions that do things.*

All of that is done by the programs instructions triggering a chain reaction in the CPU. Sort of like a Rube Goldberg machine, except the outcomes can be different based on the instructions given to the CPU.

Another way to think of it is that the CPU is just a really advanced calculator. Programs punch in numbers and the CPU gives the programs results; Except the CPU does way more than just basic math.

You are viewing 1 out of 5 answers, click here to view all answers.