'We need compiler' because computers cannot understand coherent human language, and humans cannot understand coherent computer language. Compilers are like translators that convert human-readable/writable code into assembly code, which is very difficult to understand and use. The compiler then converts the assembly code into binary, which is what an EXE file is.
2006-07-28 17:05:30
·
answer #1
·
answered by adsims2001 2
·
4⤊
0⤋
A compiler is a program that translates your human-readable code into something that the machine understands. Even assembly language is compiled. It is incorrect to say that a human can't understand binary -- the earliest computers were literally programmed by flipping a row of switches on the outside of the box. Its just that modern code is so huge! "On" correlates to a binary one, "off" correlates to a binary zero. Binary code is just our human way of making a distinction between current being on or current being off in an electrical circuit.
If you'd like to see what machine code looks like, download a hex editor (XVI32 is a good one, and freeware at that) and then open up any.exe file in it. You will see the hexadecimal equivalent of the code, plus a text version, if it translates into ASCII. And if you want to know what hexadecimal is, well that's another question....
2006-07-28 18:06:39
·
answer #2
·
answered by oighe 1
·
0⤊
0⤋
A compiler is a program that takes source code and translates it to machine code so the computer knows what to do with it. Computers only know ones and zeros, so a compiler helps the computer understands what you want it to do.
2006-07-28 17:06:06
·
answer #3
·
answered by Stephanus S 3
·
0⤊
0⤋
Because the processors (CPUs) cannot read the source code that people can read. Processors can only read binary, strings of ones and zeros. Each processor design has a very specific instruction set, and those instructions do simple things like "fetch a byte from disk address 110011001100 and store it at memory address 111000" A compiler converts the program you can read into one that the processor can understand.
2006-07-28 17:06:42
·
answer #4
·
answered by Jay S 5
·
0⤊
0⤋
programming languages are meant to be read by humans, and in their original source form are meaningless to the hardware. A compiler translates the program into loadable machine instructions and data areas. Those can be loaded on the computer and executed.
2006-07-28 17:07:33
·
answer #5
·
answered by Computer Guy 7
·
0⤊
0⤋
can you write in binary form, no.
so a compiler is used to translate your source code into object code so that the computer can understand
2006-07-28 17:17:53
·
answer #6
·
answered by NayaMee 5
·
0⤊
0⤋
to make machine code from high level language. Think of it as a complex language translator.
2006-07-28 17:05:35
·
answer #7
·
answered by Anonymous
·
0⤊
0⤋
to translate the high level language to machine level language so that the computer can understand
2006-07-29 18:06:06
·
answer #8
·
answered by george 4
·
0⤊
0⤋
Because Run-Time Interpreters are too slow (as seen in BASIC).
2006-07-30 11:19:30
·
answer #9
·
answered by dryheatdave 6
·
0⤊
0⤋
In order to get things in its proper place. When time comes that we need something, we easily get it. To be organize.
2006-07-28 17:06:20
·
answer #10
·
answered by Sam X9 5
·
0⤊
0⤋