Thursday, June 6, 2013

Differentiate between Compilers, assembler and translator. Explain their working and the situations where each is useful.

COMPILERS: They're computer code that interprets program written in high level language to machine language. Compilers are advanced programs.

How is an interpreter different from a compiler?

What is meant by Compiling a program?

What is Cross Compiler? 

What are different passes of a compiler? 

Explain the stages of compilation for a C Compiler?
 
ASSEMBLERS They're computer code that interprets programs written in programming language to machine language.

An assembler for Pentium is mandatory to support C++

TRANSLATOR: Translators are computer code than will convert programs written in one language to a different language. Compilers, interpreters, assemblers etc. are example of translators.

Compilers use several phases for conversion. They are:-

LEXICAL ANALYSIS: Checking for invalid symbols in program.

SYNTAX ANALYSIS: Checking validity of syntax used.


CODE GENERATION: Convert every statement to equivalent machine language.

CODE OPTIMIZATION: Generated code is analyzed for redundancy and best code is generated.

Assemblers typically uses 2 or 3 phases (passes) for changing programming language program to machine language program. within the initial pass, macro calls are swollen. within the second pass forward references are resolved and within the third pass actual machine language generation is finished.


Once computer code is developed victimization high level languages, compilers are essential for translation. Similarly, assemblers are needed for translation in places wherever programs are developed in programming language.

7 comments:

  1. That is an extremely smart written article. I will be sure to bookmark it and This article is efficient. Thank you for sharing it with us. I am visiting this blog on a daily basis and I am finding so much helpful article each time. Keep working on this and thank you once again...

    www.mixresult.com, a new-generation Mix education result news portal, publishes update result news from a highly interactive platform.

    www.mixresult.com

    ReplyDelete
  2. The is amazing post. I like this so much. The Custom essay writing service is my writing service. We are making the essays, and more types of writing papers for the students.

    ReplyDelete
  3. I have managed to use different compilers but I have not yet used all the compilers. This blog has given very clear guidelines on the types of compilers which can be used in this era. I have gotten the chance to even discover new compilers and this has helped me a lot. Text Citations Revising Help

    ReplyDelete