Assembler vs Compiler vs Linker

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sunil

    Assembler vs Compiler vs Linker

    Hi all,

    I would like to know what is the difference between asembler ,
    compiler , linker & loader. I am new to programming.


    Sunil.

  • Michael Mair

    #2
    Re: Assembler vs Compiler vs Linker

    Sunil wrote:[color=blue]
    > I would like to know what is the difference between asembler ,
    > compiler , linker & loader. I am new to programming.[/color]

    Unfortunately, you seem also to be new to Usenet.
    This newsgroup only deals with the C language, not with
    implementations , programming tools etc.

    If you have no clue at all, wikipedia.org may be a good first
    address. The article about C is IMO not perfect but if you want
    to know more about C, you can always ask here -- after reading
    the FAQ.

    Cheers
    Michael
    --
    E-Mail: Mine is an /at/ gmx /dot/ de address.

    Comment

    • Sunil

      #3
      Re: Assembler vs Compiler vs Linker

      This newsgroup only deals with the C language

      yes you are right.This news group deals with C Language. But i
      think before
      knowing what is there in C language knowing what is the purpose of it
      is more important.

      Since C is a compiler , i think i have posted question in the
      correct group.

      Comment

      • Michael Mair

        #4
        Re: Assembler vs Compiler vs Linker

        Sunil wrote:[color=blue]
        > This newsgroup only deals with the C language
        >
        > yes you are right.This news group deals with C Language. But i
        > think before
        > knowing what is there in C language knowing what is the purpose of it
        > is more important.
        >
        > Since C is a compiler , i think i have posted question in the
        > correct group.[/color]

        1) Please do quote context in a way that it is clear you are quoting
        2) Please do not snip attributions when quoting

        Without context and attributions you make it harder for people
        who have not (yet) received all previous messages to help you
        as they do not know what you are referring to and how the
        discussion developed.

        3) You did not check wikipedia on compilers: C is not a compiler.
        There are C compilers but an implementation could work without
        compiling. (The difference between C being a compiler and there
        being compilers compiling C is the same as between all water being
        rivers and having rivers containing water.)

        You did not read the FAQ or the Welcome Message (both can easily
        be found using google), so your opinion is unnecessarily uninformed
        and wrong.

        -Michael
        --
        E-Mail: Mine is an /at/ gmx /dot/ de address.

        Comment

        • Flash Gordon

          #5
          Re: Assembler vs Compiler vs Linker

          Sunil wrote:[color=blue]
          > This newsgroup only deals with the C language[/color]

          Please quote properly using quote markers and proper attribution as
          shown in this article. The above line was not, I believe, written by you
          however the way you have posted makes it look like it was. I believe
          that if you press the options button above the message and then hit the
          reply button that reveals, rather than the reply button shown by
          default, Google will do most of the work for you so all you have to do
          is snip text you are not replying to.
          [color=blue]
          > yes you are right.This news group deals with C Language. But i
          > think before
          > knowing what is there in C language knowing what is the purpose of it
          > is more important.
          >
          > Since C is a compiler , i think i have posted question in the
          > correct group.[/color]

          C is *not* a compiler, it is a *language*. Just as the English is not a
          dictionary (or, for a closer comparison the part of your brain that
          processes language), it is a language.

          How compilers work is *not* on topic for this group, there is a group
          dedicated to this complex topic called comp.compilers. If you want to
          know how compilers work and what the division is between compilers and
          assemblers that would be a place to start, not here. Obviously you
          should read their FAQ first, and a few days worth of posts (I know you
          did not do that here or you would have known how to reply properly).
          There are also groups dedicated to specific implementations where you
          will get help on how to use those implementations .

          Also, you don't need to know the relationship between compilers,
          assemblers and linkers to program in C, and indeed many modern
          implementations don't actually produce and actual assembler code or use
          an assembler. Some implementations don't use a separate linker either,
          or the linking is done when you run the program rather than when you
          build it.
          --
          Flash Gordon
          Living in interesting times.
          Although my email address says spam, it is real and I read it.

          Comment

          Working...