Discussion in 'C' started by pkbis28, May 27, 2010.
will someone please clarify what a compiler is and what is its function.
A computer cannot understand the spoken or written language that we humans use in our day to day conversations, and likewise, we cannot understand the binary language that the computer uses to do it's tasks. It is therefore necessary for us to write instructions in some specially defined language, in this case C, which we can understand, then have that very precise language converted into the very terse language that the computer can understand. This is the job of the compiler.
I know In programming, a compiler takes human readable source code and converts it into the binary code that the computer can understand. Key point: A compiler is a form of lossy compression and one-way encryption. All the information meaningful to humans is removed from the code leaving only the information necessary for the computer. This means that humans can no longer easily read the resulting program directly. Because of the "one-way" nature of the operation, programs cannot be used to recover the existing source code. This effect is different in various languages. C++ is the worst language in terms of decompilation; Java is the best. Most Java applets can be decompiled back to some semblance of their previous form. This has led to a market for programs that further obfuscate Java binaries in an effort to hide the original source code. Some compilers do leave human-readable symbols behind for debugging purposes. They won't reveal the original source, but can still be useful for reverse engineering They can be "stripped" from the binary.
The most important aspect is the need. Do we need to decompile?
Compiler is software a program which converts the High Level language to machine level language. The source code written by the programmer in high level language such as C-language is converted in to machine level language( binary language ) which is 1 s and 0 s only.
Kolla Sanjeeva Rao
Compiler is a program which converts the High level language such as C-language to machine level language.
Separate names with a comma.