Difference between assemblers and compilers

  • Thread starter Thread starter pairofstrings
  • Start date Start date
  • Tags Tags
    Difference
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 7K views
pairofstrings
Messages
411
Reaction score
7
Can you tell me the differences between compilers and assemblers? why are they named different?
 
Physics news on Phys.org
Assemblers generally convert one input instruction string to one output machine language bit pattern. They may have some higher level capabilities, such as macro expansion,but you can think of them as being simple "English" to "Machine" translators.

Compilers are the tool that translates a higher level language description, say 'C' or Fortran into machine language, so more often there is a one to many relationship between input string and output. Most compilers can output the relevant assembly language for the system, and that output may in-fact be fed into an assembler to make the machine code.

They are named differently because they do different things...