Computing

How do computers read code?

Submitted by Deleted_3747, , Thread ID: 173423

Thread Closed

RE: How do computers read code?

mustaqrahil
Lurker
Level:
0
Reputation:
0
Posts:
9
Likes:
0
Credits:
9
27-12-2020, 11:09 AM
#3
This is how I understand it. I assume that people understand, how high level languages are compiled to machine code - its pretty much taking high level instructions and unwrapping them to highly verbose machine commands. After that, CPU has a place where numbers(0 and 1) are stored - registers, and a place to accept the commands(instructions). The CPU is hardwired for each instruction to do some specific task to the numbers. Like add, subtract, move to another register and so on. Every time the cpu sees a command, it completes a particular electric circuit. When that circuit is applied to a particular register value, it produces a result, like addition or subtraction.

Users browsing this thread: 1 Guest(s)