Computing

How do computers read code?

Submitted by Deleted_3747, , Thread ID: 173423

Thread Closed
30-05-2020, 05:40 PM
This post was last modified: 30-05-2020, 05:43 PM by Deleted_3747
#1
Found this pretty useful video, been looking to get into this recently. To understand compilers etc.
Never actually found a source that describes compiling this well.
So if anyone is interested, here you go:


RE: How do computers read code?

#2
Got another one for you. This is a super cool video that show how digital logic gates work...but the guy has built them using string and pulley (no electricity). Really show you what the gate is 'doing'

https://vimeo.com/93042377

RE: How do computers read code?

#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)