answersLogoWhite

0

Assembler- A computer program that takes computer instructions and converts them into a pattern of bits that the computer can understand and perform by it certain operations.

Compiler- program that processes statements written in a programming language and turns them into machine language that a computer's processor uses. this program get the syntax error in the written program

Conceptually speaking, both an assembler and a compiler do exactly the same thing: they take as input some language that is human-understandable, and translate that directly into machine code instructions that the computer can execute.

However, in common usage, an "assembler" refers specifically to a such a program that takes as its input assembly language. Assembly language is a very "low-level" programming language, where short acronyms as used to represent machine instructions. Thus, assembly language very, very closely mirrors the actual machine code being executed, and (realistically) is only very mildly "human readable". Assemblers do little more than directly translate the assembly source code into machine code - that is, they don't do optimization of their own, as assembly language is meant as a direct representation of the machine code, and thus no optimization is required (or, desired).

A "compiler" generally refers to any other instance of this concept, but usually means something that take a "higher-level language" (i.e. anything above assembly language) and translates that to machine code. Compilers generally need to be significantly "smarter" than an assembler, as the compiler does a whole lot more work, and thus, has the opportunity to make significantly optimizations when doing the source->machine code translation. That is, high-level languages allow for the expression of concepts of ideas, which make them ideal for humans to write programs in. The compiler must be sophisticated enough to take these ideas and convert them into concrete machine code instructions. In addition, better compilers notice places where shortcuts can be taken (optimizations) given the overall structure of the input source code.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the difference between an assembler and a translator?

what is the difference between an assembler and the translator


What is DML Compiler?

What is difference between Compiler and DML Compiler


What is the Difference between cross assembler and resident assembler?

An assembler which runs on a computer for which it produces object codes


Description on compiler and assembler with block diagram and figures?

Most of the compiler's that are used to compile programs is coded with the old assembler language. Assembler is also the older language which is used in the old Mainframe environment


The three Types of translator?

Assembler, Compiler and Interpretor


What is difference between assembler and linker?

There is no definite term "assembler" in compilation process. It is more like "compiler" and "linker". Assembler usually refers to a compiler of machine language: http://en.wikipedia.org/wiki/Assembly_language So you probably mean difference between compiler and linker? Lets say you have a 3 module program, and it uses a 3rd party library, then the compiler will just compile each of your modules (separately) into binary pieces, which have "unclosed" references to abovementioned library and other 2 modules. After u have 3 binary pieces comes in "linker" it attaches those "unclosed" (or unlinked) links to other modules and library, therefore giving you working program file (.exe file for example). Really hard to say that without a schema or something like that:) Hope this answer helped you.


What is the difference between computer interpreter assembler?

wee2


Examples of computer language translators?

Assembler Interpreter Compiler


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What are types of system programs?

compiler linker loader macroprocessor assembler


What are the types of system program?

compiler linker loader macroprocessor assembler


What are the five types of system?

compiler linker loader macroprocessor assembler