1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compiler.what is it?

Discussion in 'C' started by pkbis28, May 27, 2010.

  1. pkbis28

    pkbis28 New Member

    Joined:
    May 25, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    will someone please clarify what a compiler is and what is its function.
     
  2. singh_r85

    singh_r85 New Member

    Joined:
    May 25, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  3. marck_don

    marck_don New Member

    Joined:
    May 4, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  4. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    The most important aspect is the need. Do we need to decompile?
     
  5. ksrao

    ksrao New Member

    Joined:
    Aug 10, 2010
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    0
    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.

    Regards
    Kolla Sanjeeva Rao
     
  6. ksrao

    ksrao New Member

    Joined:
    Aug 10, 2010
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    0
    Compiler is a program which converts the High level language such as C-language to machine level language.
     

Share This Page