How is a computer programmed?

Home » Programming & Design » How is a computer programmed?
Programming & Design No Comments

I am a programmer. I program games on a computer. I do not know how a computer is actually programmed (on the inside) though. I understand where the information goes and things like that, but it is just a bunch of chips and wires. For example, how does the bios work, that is only slightly programmed, yet, it

I am a programmer. I program games on a computer. I do not know how a computer is actually programmed (on the inside) though. I understand where the information goes and things like that, but it is just a bunch of chips and wires. For example, how does the bios work, that is only slightly programmed, yet, it does things with just some kind of switches on the inside. Can somebody please explain it in detail?

Other answer:

Undisclosed:
There are levels of language.

High level languages are things like C# or C++ or VB or Java. They are human readable and rely on either an Interpreter or a Compiler to interpret the code at runtime or compile the code at build time (respectively). Some people consider compiled code "mid level".

Next we have Assembly language. Assembly is still human readable but not nearly as clear, and a lot of what you'd see is instruction to move things around in memory. This was how people used to program directly, and high level languages can be broken down into Assembly instructions.

Finally, there's machine language (i.e. binary). All code breaks down into being this. In modern computing, 1 represents on and 2 represents off. These are considered "True" and "False" and take up exactly 1 bit. These are the instructions we're talking about when we talk about the actual hardware "switches" and such in the computer. Within the next century, we expect computers that are still in development to hit the market that actually have a different base, having more states at the most basic level than "true" and "false", functioning more like a human brain.

The BIOS is mostly an interface point for the hardware and the user. It is usually much more than "slightly programmed", even though it won't look it at first.

Chris:
Look up videos on youtube where people use Minecraft to create graphical calculators. That's pretty much what's happening inside the chips. It's all transistors, storing electrical states, until a current comes along switches a zero to a one.
EddieJ:
You were right. There is just a bunch of chips and wires inside. That's all you need to know. Get back to your programming.
Andy T:
Don't you think it is better to search this info instead of asking for it? This stuff warrants entire engineering book.
brilliant_moves:
I searched Wikipedia, the online encyclopedia, entering "how do computers work?", and got this link (amongst many).
William:
No Joke: one night I smoked just one puff of a joint and I had the greatest code I have ever made, it loosens you up
joe:
you want detail here…. good luck!

LEAVE A COMMENT