Search your Topic HERE....

December 24, 2013

Types of Compilers


sponsored links

Friends, we have already discussed the introduction of compilers and phases of compilers. In this post we shall discuss about various types of compilers.Those are 1. Incremental Compiler and 2. Cross compiler. Lets have a detailed look at them,

Incremental Compiler 

Incremental Compiler is a compiler which performs the recompilation of only modified source rather than compiling the whole source program.

The basic features of incremental compiler are,
  1. It tracks the dependencies between output and the source program.
  2. It produces the same result as full recompile.
  3. It performs less task than the recompilation.
  4. The process of incremental compilation is effective for maintenance. 

Cross Compiler

According to a compiler, basically there exists three types of languages. Those are,
  • Source Language : The application program
  • Target Language : In which machine code is written.
  • The Implementation Language : In which the compiler is written.
There may be a case that all these languages are different. In other words, there may be a compiler which run on one machine and produce the target code for another machine. Such a compiler is called cross compiler. Thus by using the cross compilation technique platform independency (generate on one platform and run on any platform) can be achieved. 

To represent cross compiler, T diagram is drawn as follows.
T diagram with S as source, T as target and I as implementation lanaguage

Cross Compiler

For source language L the target language N gets generated which runs on machine M.

That's all for now friends. In our next post we shall discuss about Bootstrapping. Happy Reading :)

sponsored links


  1. hi mam pls how to prepare for tamilnadu merchantile bank clerk exam 2014..... pls i need the syllabus and previous papers.... by nithi... from tamilnadu...............pls mail the materials to my id

  2. plz upload it officer syallabus as a pdf file...

  3. hello mam can u please guide me how to prepare for ibps IT officers...and also kindly tell hw the cut off will be for ibps clerks which were already held in december...i am from Andhra Pradesh and state wise cut will be there it seems please tell me mam

  4. Shivani mam for above message please send mail to
    please mam waiting for ur reply...

    1. hi you can even share that msg with me

  5. i dont get cross compiler diagram please explain

  6. iam clear with T diagram of cross compiler please explain

  7. Seriously great notes specially for a last minute reader like me! :)


Related Posts Plugin for WordPress, Blogger...