Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do computers understand code?
When you code a computer program, how does the computer know how to understand code? This is a question that I haven't heard anyone ask and I have always been curious about...
9 Answers
- 4 years ago
The computer isn't really understanding the words you type into your IDE. The compiler first translates the code into a series of ones and zeros. A one means that a circuit is complete and a zero means that it's off. THe pattern of the ones and zeros are what the computer uses to accomplish a a certain command. That's just life an overview of what is happening under the hood. The reality is much more complicated.
- Anonymous4 years ago
Asian people explain it to them .
- keerokLv 74 years ago
The code or programming language is what humans understand. It gets translated to machine language which the computer understands then runs it.
- How do you think about the answers? You can sign in to vote the answer.
- Grumpy MacLv 74 years ago
A CPU has an instruction set that can pull in numbers, put them in registers, perform operations and push back out results. This code is called "assembly language".
A "compiled" program takes human-readable text like "a = b + c;" and translates it to a set of assembly language rows that:
* Pulls a value from memory location b into register 1
* Pulls a value from memory location c into register 2
* Add the contents of register 1 to register 2
* Push the contents of result register to memory location a
There is an entire sub-study of computer science called "Compiler Theory" that lists the problems and techniques for this translation to create a programming language.
Look up "CPU Instruction Set" if you want some concrete examples.
- KenLv 44 years ago
Computers do not 'understand' code, computer programs are translated into a binary instruction stream that is the 'language' that the computer processor can execute. If you look around you may find a simple computer emulator/tutor/? program that tries to show how a processor works.
- Anonymous4 years ago
The machine's operating system is pre-programmed to accept and work with code.